Function at 0x4418e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a974
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x597644]
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.00430320
mov esi, 1
mov dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x64], esi
call fcn.00440270
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 4], esi
jb 0x44195e
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x441c3c
cmp dword [edi + 0x14], 8
jb 0x441975
mov edi, dword [edi]
cmp dword [ebp - 0xd0], 0
jne 0x441ad1
push 0x40
push 3
push edi
call fcn.0047d50b
add esp, 0xc
test eax, eax
je 0x441ad1
push 1
push eax
lea ecx, [ebp - 0x11c]
call fcn.00442190
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.0043ff90
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 0x4419f3
mov dword [ebp - 0xe4], 0
jmp 0x441a80
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 0x441a9d
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x441a9d
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 0x441fea
jmp 0x441b3a
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 0x441b3a
test cl, 4
je 0x441b15
mov esi, str.ios_base::badbit_set
jmp 0x441b25
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.004288b0
add esp, 8
push eax
push esi
jmp 0x441ffe
cmp dword [ebp - 0xd0], 0
je 0x441fbf
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.0043fd40
add esp, 8
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
jb 0x441bad
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x441bad
push eax
push 0x54fa2c
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004282d0
jmp 0x441bbf
push 0xfde9
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004a3890
add esp, 0xc
mov edx, dword [ebp - 0x14]
or esi, 4
mov dword [ebp - 0x64], esi
cmp edx, 8
jb 0x441bff
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x441bf5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x442014
push edx
push ecx
call fcn.00497eef
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 0x441cae
lea ecx, [ebp - 0x58]
call fcn.00415600
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00421740
mov esi, dword [ebp - 0x68]
cmp dword [ebp - 0xd0], 0
je 0x441fc2
lea ecx, [ebp - 0x11c]
call fcn.00442670
test eax, eax
jne 0x441fc2
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 0x441fc2
test cl, 4
je 0x441b15
mov esi, str.ios_base::badbit_set
jmp 0x441b25
cmp dword [ebp - 0x30], 0
je 0x441f15
mov esi, dword [ebp - 0x5c]
cmp dword [esi + 0x14], 8
jb 0x441cc3
mov esi, dword [esi]
mov eax, dword [0x59c3d4]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test al, 1
jne 0x441d04
or eax, 1
mov dword [0x59c3d4], eax
call edi
push 0x54a580
mov dword [0x59c3c8], 0x54f948
mov dword [0x59c3cc], eax
mov byte [0x59c3d0], 0
call fcn.004982ea
mov eax, dword [0x59c3d4]
add esp, 4
test al, 2
jne 0x441d60
or eax, 2
mov dword [0x59c3d8], 0x54f960
mov dword [0x59c3d4], eax
xor eax, eax
push 0x54a5b0
mov dword [0x59c3dc], 0x59c3c8
mov dword [0x59c3ec], 2
mov dword [0x59c3e4], 0
mov dword [0x59c3e8], 0
mov dword [0x59c3f0], eax
mov dword [0x59c3e0], 0x59c3d8
call fcn.004982ea
add esp, 4
mov eax, dword [0x59c3d8]
mov ecx, 0x59c3d8
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 7
test esi, esi
je 0x441d93
test esi, 0xffff0000
jne 0x441d93
movzx eax, si
lea ecx, [ebp - 0x60]
push eax
call fcn.0040d860
jmp 0x441d9c
push esi
lea ecx, [ebp - 0x60]
call fcn.0040c9b0
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
mov eax, dword [0x59c3d4]
cmovae esi, dword [ebp - 0x28]
mov byte [ebp - 4], 8
test al, 1
jne 0x441de6
or eax, 1
mov dword [0x59c3d4], eax
call edi
push 0x54a580
mov dword [0x59c3c8], 0x54f948
mov dword [0x59c3cc], eax
mov byte [0x59c3d0], 0
call fcn.004982ea
mov eax, dword [0x59c3d4]
add esp, 4
test al, 2
jne 0x441e42
or eax, 2
mov dword [0x59c3d8], 0x54f960
mov dword [0x59c3d4], eax
xor eax, eax
push 0x54a5b0
mov dword [0x59c3dc], 0x59c3c8
mov dword [0x59c3ec], 2
mov dword [0x59c3e4], 0
mov dword [0x59c3e8], 0
mov dword [0x59c3f0], eax
mov dword [0x59c3e0], 0x59c3d8
call fcn.004982ea
add esp, 4
mov eax, dword [0x59c3d8]
mov ecx, 0x59c3d8
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 9
test esi, esi
je 0x441e75
test esi, 0xffff0000
jne 0x441e75
movzx eax, si
lea ecx, [ebp - 0x5c]
push eax
call fcn.0040d860
jmp 0x441e7e
push esi
lea ecx, [ebp - 0x5c]
call fcn.0040c9b0
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.004a1b90
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 0x441ea1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004282d0
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 0x441edb
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 0x441ef9
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 0x441f15
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 0x441f32
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004282d0
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x441f6a
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x441f60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x442019
push edx
push ecx
call fcn.00497eef
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 0x441c3f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x441fb0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44201e
push edx
push ecx
call fcn.00497eef
add esp, 8
jmp 0x441c3f
mov esi, dword [ebp - 0x68]
lea ecx, [ebp - 0x134]
call fcn.00440a80
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.004982ff
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x70]
push 1
push eax
call fcn.004288b0
add esp, 8
push eax
push str.ios_base::badbit_set
lea ecx, [ebp - 0x3c]
call fcn.00425860
push 0x57f1c0
lea eax, [ebp - 0x3c]
push eax
call fcn.004dd40f
call fcn.004e9178
call fcn.004e9178
call fcn.004e9178
int3