Function at 0x4419e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539ef4
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x596634]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x14]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], 0
call fcn.004304a0
mov esi, 1
mov dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x64], esi
call fcn.00440370
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 4], esi
jb 0x441a5e
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x441d3c
cmp dword [edi + 0x14], 8
jb 0x441a75
mov edi, dword [edi]
cmp dword [ebp - 0xd0], 0
jne 0x441bd1
push 0x40
push 3
push edi
call fcn.0047bf4e
add esp, 0xc
test eax, eax
je 0x441bd1
push 1
push eax
lea ecx, [ebp - 0x11c]
call fcn.00442290
mov eax, dword [ebp - 0xe8]
mov byte [ebp - 4], 2
mov edi, dword [eax + 4]
mov ecx, edi
mov dword [ebp - 0x6c], edi
mov eax, dword [edi]
call dword [eax + 4]
mov esi, 3
mov dword [ebp - 0x64], esi
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
call fcn.00440090
mov ecx, eax
add esp, 4
mov dword [ebp - 0x60], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x441af3
mov dword [ebp - 0xe4], 0
jmp 0x441b80
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xf4]
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0xf8], 0
mov byte [ebp - 4], 4
test edi, edi
je 0x441b9d
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x441b9d
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x134]
xor edx, edx
mov byte [ebp - 4], 1
mov ecx, dword [eax + 4]
mov eax, 4
cmp dword [ebp + ecx - 0xfc], edx
cmovne eax, edx
mov dword [ebp + ecx - 0x128], eax
test dword [ebp + ecx - 0x124], eax
jne 0x4420ea
jmp 0x441c3a
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0xfc], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x128]
and eax, 0x17
mov dword [ebp + ecx - 0x128], eax
mov ecx, dword [ebp + ecx - 0x124]
and ecx, eax
je 0x441c3a
test cl, 4
je 0x441c15
mov esi, str.ios_base::badbit_set
jmp 0x441c25
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.00428a40
add esp, 8
push eax
push esi
jmp 0x4420fe
cmp dword [ebp - 0xd0], 0
je 0x4420bf
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], al
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.0043fe40
add esp, 8
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
jb 0x441cad
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x441cad
push eax
push 0x54ea3c
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00428460
jmp 0x441cbf
push 0xfde9
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004a22e0
add esp, 0xc
mov edx, dword [ebp - 0x14]
or esi, 4
mov dword [ebp - 0x64], esi
cmp edx, 8
jb 0x441cff
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x441cf5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x442114
push edx
push ecx
call fcn.00496936
add esp, 8
movups xmm0, xmmword [ebp - 0x40]
mov eax, dword [ebp - 0x134]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x128], 6
je 0x441dae
lea ecx, [ebp - 0x58]
call fcn.004157c0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004218e0
mov esi, dword [ebp - 0x68]
cmp dword [ebp - 0xd0], 0
je 0x4420c2
lea ecx, [ebp - 0x11c]
call fcn.00442770
test eax, eax
jne 0x4420c2
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0xfc], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x128]
and eax, 0x17
mov dword [ebp + ecx - 0x128], eax
mov ecx, dword [ebp + ecx - 0x124]
and ecx, eax
je 0x4420c2
test cl, 4
je 0x441c15
mov esi, str.ios_base::badbit_set
jmp 0x441c25
cmp dword [ebp - 0x30], 0
je 0x442015
mov esi, dword [ebp - 0x5c]
cmp dword [esi + 0x14], 8
jb 0x441dc3
mov esi, dword [esi]
mov eax, dword [0x59b3c4]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test al, 1
jne 0x441e04
or eax, 1
mov dword [0x59b3c4], eax
call edi
push 0x549be0
mov dword [0x59b3b8], 0x54e958
mov dword [0x59b3bc], eax
mov byte [0x59b3c0], 0
call fcn.00496d31
mov eax, dword [0x59b3c4]
add esp, 4
test al, 2
jne 0x441e60
or eax, 2
mov dword [0x59b3c8], 0x54e970
mov dword [0x59b3c4], eax
xor eax, eax
push 0x549c10
mov dword [0x59b3cc], 0x59b3b8
mov dword [0x59b3dc], 2
mov dword [0x59b3d4], 0
mov dword [0x59b3d8], 0
mov dword [0x59b3e0], eax
mov dword [0x59b3d0], 0x59b3c8
call fcn.00496d31
add esp, 4
mov eax, dword [0x59b3c8]
mov ecx, 0x59b3c8
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 7
test esi, esi
je 0x441e93
test esi, 0xffff0000
jne 0x441e93
movzx eax, si
lea ecx, [ebp - 0x60]
push eax
call fcn.0040da20
jmp 0x441e9c
push esi
lea ecx, [ebp - 0x60]
call fcn.0040cb70
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
mov eax, dword [0x59b3c4]
cmovae esi, dword [ebp - 0x28]
mov byte [ebp - 4], 8
test al, 1
jne 0x441ee6
or eax, 1
mov dword [0x59b3c4], eax
call edi
push 0x549be0
mov dword [0x59b3b8], 0x54e958
mov dword [0x59b3bc], eax
mov byte [0x59b3c0], 0
call fcn.00496d31
mov eax, dword [0x59b3c4]
add esp, 4
test al, 2
jne 0x441f42
or eax, 2
mov dword [0x59b3c8], 0x54e970
mov dword [0x59b3c4], eax
xor eax, eax
push 0x549c10
mov dword [0x59b3cc], 0x59b3b8
mov dword [0x59b3dc], 2
mov dword [0x59b3d4], 0
mov dword [0x59b3d8], 0
mov dword [0x59b3e0], eax
mov dword [0x59b3d0], 0x59b3c8
call fcn.00496d31
add esp, 4
mov eax, dword [0x59b3c8]
mov ecx, 0x59b3c8
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 9
test esi, esi
je 0x441f75
test esi, 0xffff0000
jne 0x441f75
movzx eax, si
lea ecx, [ebp - 0x5c]
push eax
call fcn.0040da20
jmp 0x441f7e
push esi
lea ecx, [ebp - 0x5c]
call fcn.0040cb70
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.004a05e0
add esp, 0xc
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 0xb
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x441fa1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00428460
mov edx, dword [ebp - 0x6c]
or esi, 0xffffffff
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x441fdb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x5c]
mov eax, esi
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x441ff9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x60]
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x442015
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x442032
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00428460
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x44206a
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x442060
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x442119
push edx
push ecx
call fcn.00496936
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x441d3f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4420b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44211e
push edx
push ecx
call fcn.00496936
add esp, 8
jmp 0x441d3f
mov esi, dword [ebp - 0x68]
lea ecx, [ebp - 0x134]
call fcn.00440b80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00496d46
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.00428a40
add esp, 8
push eax
push str.ios_base::badbit_set
lea ecx, [ebp - 0x3c]
call fcn.004259f0
push 0x57dc50
lea eax, [ebp - 0x3c]
push eax
call fcn.004dc9af
call fcn.004e8718
call fcn.004e8718
call fcn.004e8718
int3