Function at 0x1003ec00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ca822
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x101063e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x160], edx
mov edi, dword [ecx + 4]
mov esi, dword [ecx]
cmp esi, edi
je 0x1003ec86
or ebx, 0xffffffff
mov edx, dword [esi]
mov eax, ebx
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003ec6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x1003ec56
mov ecx, dword [ebp - 0x154]
xor ebx, ebx
mov eax, dword [ebp - 0x148]
mov esi, dword [ecx]
mov dword [ecx + 4], esi
lea ecx, [ebp - 0x158]
push ecx
mov ecx, eax
call fcn.1003eac0
mov dword [ebp - 4], 0
call fcn.10004380
mov ecx, eax
test ecx, ecx
je 0x1003f69d
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x15c], edi
mov eax, dword [ebp - 0x148]
mov ecx, 1
sub ecx, dword [edi - 4]
mov edx, dword [ebp - 0x158]
mov byte [ebp - 4], 1
mov esi, dword [eax + 0x40]
mov eax, dword [edi - 8]
sub eax, 0x104
mov dword [ebp - 0x14c], edx
or eax, ecx
jge 0x1003ed04
push 0x104
lea ecx, [ebp - 0x15c]
call fcn.10004430
mov edi, dword [ebp - 0x15c]
mov edx, dword [ebp - 0x14c]
cmp dword [edi - 8], 0x104
jl 0x1003f6a7
push esi
push edx
xor eax, eax
mov dword [edi - 0xc], 0x104
push edi
mov word [edi + 0x208], ax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [edi - 8]
push edi
call fcn.100a0806
add esp, 8
test eax, eax
js 0x1003f6a7
cmp eax, dword [edi - 8]
jg 0x1003f6a7
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
cmp dword [edi - 0xc], ecx
je 0x1003f63d
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003f63d
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1003f63d
push 1
push 0x40
push 1
push edi
lea ecx, [ebp - 0x21c]
call fcn.1003de10
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 3
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x210], 6
jne 0x1003f4c9
lea ecx, [ebp - 0x21c]
push 0xa
add ecx, eax
call fcn.10040850
movzx eax, al
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.1003dab0
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x148], esi
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 0x150], ecx
cmp esi, 0xb
jb 0x1003ee96
lea eax, [esi - 0xa]
add eax, ecx
mov dword [ebp - 0x14c], eax
sub eax, ecx
push eax
push 0x68
push ecx
call fcn.1009d040
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1003ee96
nop
mov ecx, ebx
mov edx, str.homepages_
mov esi, 7
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1003ee41
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1003ee30
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1003ee68
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1003ee68
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1003ee68
cmp esi, 0xffffffff
je 0x1003ee64
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1003ee68
xor eax, eax
jmp 0x1003ee6d
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003ef18
mov eax, dword [ebp - 0x14c]
inc ebx
sub eax, ebx
push eax
push 0x68
push ebx
call fcn.1009d040
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003ee20
mov esi, dword [ebp - 0x148]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14c], ecx
cmp esi, 0xa
jb 0x1003ef5d
lea eax, [ecx - 9]
add eax, esi
mov dword [ebp - 0x150], eax
sub eax, ecx
push eax
push 0x68
push ecx
call fcn.1009d040
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1003ef50
mov ecx, ebx
mov edx, str.homepage_
mov esi, 6
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1003eef1
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1003eee0
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1003ef2c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1003ef2c
cmp esi, 0xfffffffe
je 0x1003ef14
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1003ef2c
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1003ef2c
xor eax, eax
jmp 0x1003ef31
sub ebx, dword [ebp - 0x150]
cmp ebx, 0xffffffff
je 0x1003ee90
add ebx, 0xb
jmp 0x1003ef6c
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003ef55
mov eax, dword [ebp - 0x150]
inc ebx
sub eax, ebx
push eax
push 0x68
push ebx
call fcn.1009d040
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003eed3
or ebx, 0xffffffff
jmp 0x1003ef6c
sub ebx, dword [ebp - 0x14c]
jmp 0x1003ef60
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x1003f2e1
add ebx, 0xa
cmp ebx, 0xffffffff
je 0x1003f2e1
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x148]
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14c], ecx
cmp edx, 1
jb 0x1003eff1
lea eax, [edx - 1]
cmp ebx, eax
ja 0x1003eff1
lea eax, [edx + ecx]
add ecx, ebx
mov dword [ebp - 0x150], eax
sub eax, ecx
push eax
push 0x22
push ecx
call fcn.1009d040
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1003efeb
movzx ecx, byte [esi]
cmp cl, 0x22
jne 0x1003efc3
xor eax, eax
jmp 0x1003efc8
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003f03c
mov eax, dword [ebp - 0x150]
inc esi
sub eax, esi
push eax
push 0x22
push esi
call fcn.1009d040
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1003efb7
mov edx, dword [ebp - 0x148]
or esi, 0xffffffff
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14c], ecx
cmp edx, 1
jb 0x1003f072
lea eax, [edx - 1]
cmp ebx, eax
ja 0x1003f072
lea eax, [edx + ecx]
add ecx, ebx
mov dword [ebp - 0x150], eax
sub eax, ecx
push eax
push 9
push ecx
call fcn.1009d040
mov edx, eax
add esp, 0xc
test edx, edx
je 0x1003f072
movzx ecx, byte [edx]
cmp cl, 9
jne 0x1003f04a
xor eax, eax
jmp 0x1003f04f
sub esi, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x148]
jmp 0x1003eff4
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003f0f0
mov eax, dword [ebp - 0x150]
inc edx
sub eax, edx
push eax
push 9
push edx
call fcn.1009d040
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x1003f030
or edx, 0xffffffff
mov eax, dword [ebp - 0x148]
cmp edx, esi
mov dword [ebp - 0x30], 0
cmovae edx, esi
mov dword [ebp - 0x2c], 0xf
cmp edx, 0xffffffff
mov byte [ebp - 0x40], 0
cmove edx, eax
cmp eax, ebx
jb 0x1003f6d0
sub eax, ebx
lea ecx, [ebp - 0x40]
sub edx, ebx
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push edx
add eax, ebx
push eax
call fcn.100056d0
cmp dword [ebp - 0x2c], 0x10
lea esi, [ebp - 0x40]
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 4
cmovae esi, dword [ebp - 0x40]
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x144], eax
test esi, esi
jne 0x1003f0fb
mov dword [ebp - 0x144], esi
jmp 0x1003f1c1
sub edx, dword [ebp - 0x14c]
jmp 0x1003f075
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003f100
sub ecx, edx
lea eax, [ebp - 0x140]
push 0x80
push eax
lea eax, [ebp - 0x144]
lea ebx, [ecx + 1]
push ebx
push eax
mov dword [ebp - 0x150], ebx
call fcn.10004970
add esp, 0x10
push ebx
push dword [ebp - 0x144]
push ebx
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x1003f1b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1003f1b3
mov ebx, dword [ebp - 0x150]
push 0
push 0
push ebx
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [ebp - 0x140]
push 0x80
push eax
lea eax, [ebp - 0x144]
push esi
push eax
call fcn.10004970
add esp, 0x10
push esi
push dword [ebp - 0x144]
push ebx
push dword [ebp - 0x14c]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x1003f6b1
mov esi, dword [ebp - 0x144]
mov byte [ebp - 4], 5
call fcn.10004380
test eax, eax
je 0x1003f69d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x148], eax
push esi
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 6
call fcn.10004090
test al, al
jne 0x1003f21f
test esi, esi
jne 0x1003f1fe
xor ecx, ecx
jmp 0x1003f212
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003f203
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x148]
call fcn.100044d0
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 8
cmp eax, ecx
je 0x1003f23c
push eax
call fcn.1009ff2e
add esp, 4
mov eax, dword [ebp - 0x154]
mov ebx, dword [eax + 4]
cmp dword [eax + 8], ebx
je 0x1003f26d
mov esi, dword [ebp - 0x148]
lea eax, [esi - 0x10]
push eax
call fcn.100041c0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov eax, dword [ebp - 0x154]
add dword [eax + 4], 4
jmp 0x1003f282
lea ecx, [ebp - 0x148]
push ecx
push ebx
mov ecx, eax
call fcn.10033f20
mov esi, dword [ebp - 0x148]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003f29e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x1003f2d6
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003f2cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f70e
push edx
push ecx
call fcn.100757e2
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x148], eax
jmp 0x1003f2e7
mov eax, dword [ebp - 0x148]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14c], ecx
cmp eax, 0x10
jb 0x1003f4b2
add eax, 0xfffffff1
add eax, ecx
mov dword [ebp - 0x150], eax
sub eax, ecx
push eax
push 0x68
push ecx
call fcn.1009d040
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1003f4b2
mov edx, ebx
mov eax, str.homepagetype50_
mov esi, 0xc
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x1003f345
add edx, 4
add eax, 4
sub esi, 4
jae 0x1003f330
xor eax, eax
jmp 0x1003f36a
cmp cl, byte [eax]
jne 0x1003f365
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x1003f365
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x1003f365
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
jne 0x1003f365
xor eax, eax
jmp 0x1003f36a
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003f38e
mov eax, dword [ebp - 0x150]
inc ebx
sub eax, ebx
push eax
push 0x68
push ebx
call fcn.1009d040
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003f324
jmp 0x1003f4b2
sub ebx, dword [ebp - 0x14c]
cmp ebx, 0xffffffff
je 0x1003f4b2
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebx + 0x10]
mov esi, dword [ebp - 0x148]
lea ebx, [ebp - 0x28]
cmovae ebx, dword [ebp - 0x28]
mov dword [ebp - 0x14c], ecx
cmp esi, 1
jb 0x1003f41c
lea eax, [esi - 1]
cmp ecx, eax
ja 0x1003f41c
add esi, ebx
add ecx, ebx
mov eax, esi
sub eax, ecx
push eax
push 0x22
push ecx
call fcn.1009d040
mov edx, eax
add esp, 0xc
test edx, edx
je 0x1003f410
nop dword [eax]
movzx ecx, byte [edx]
cmp cl, 0x22
jne 0x1003f3ec
xor eax, eax
jmp 0x1003f3f1
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003f523
inc edx
mov eax, esi
sub eax, edx
push eax
push 0x22
push edx
call fcn.1009d040
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x1003f3e0
mov ecx, dword [ebp - 0x14c]
mov esi, dword [ebp - 0x148]
or edx, 0xffffffff
cmp edx, 0xffffffff
je 0x1003f4b2
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp esi, ecx
jb 0x1003f6d0
sub edx, ecx
lea eax, [ebp - 0x28]
sub esi, ecx
cmp esi, edx
cmovb edx, esi
cmp dword [ebp - 0x14], 0x10
push edx
cmovae eax, dword [ebp - 0x28]
add eax, ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.100056d0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.100a4af3
mov ecx, dword [ebp - 0x160]
add esp, 4
mov edx, dword [ebp - 0x2c]
mov dword [ecx], eax
cmp edx, 0x10
jb 0x1003f4b2
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003f4a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f70e
push edx
push ecx
call fcn.100757e2
add esp, 8
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x210], 6
je 0x1003edb6
lea ecx, [ebp - 0x20c]
call fcn.1003fd70
test eax, eax
jne 0x1003f536
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x1e4], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x210]
and eax, 0x17
mov dword [ebp + ecx - 0x210], eax
mov ecx, dword [ebp + ecx - 0x20c]
and ecx, eax
je 0x1003f536
test cl, 4
je 0x1003f6d5
mov esi, str.ios_base::badbit_set
jmp 0x1003f6e5
mov ecx, dword [ebp - 0x14c]
sub edx, ebx
mov esi, dword [ebp - 0x148]
jmp 0x1003f41f
mov edx, dword [ebp - 0x14]
mov ebx, 1
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x1003f573
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003f569
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f70e
push edx
push ecx
call fcn.100757e2
add esp, 8
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x220], eax
lea ecx, [ebp - 0x20c]
call fcn.1003e200
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x220], eax
lea eax, [ebp - 0x1ac]
mov byte [ebp - 4], 9
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.100534e9
or esi, 0xffffffff
mov byte [ebp - 4], 0
add esp, 4
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1003f619
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x158]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1003f67d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1003f67d
or esi, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1003f65b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x158]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1003f67d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10075b61
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.10003f10
push 0x80070057
call fcn.10003f10
push 0x80
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x144]
call fcn.100049f0
add esp, 0xc
call fcn.10004bf0
call fcn.10010750
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x164]
push 1
push eax
call fcn.100119a0
add esp, 8
lea ecx, [ebp - 0x3c]
push eax
push esi
call fcn.10008820
push 0x100f6630
lea eax, [ebp - 0x3c]
push eax
call fcn.1009c65a
call fcn.100a0325
int3