Function at 0x43d420
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5379b4
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x594624]
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 + 0x14]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x74], ecx
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x5c], 0
call fcn.0042ba70
push 1
lea ecx, [ebp - 0x134]
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], 1
call fcn.0043b470
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 4], 1
jb 0x43d49f
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43d64b
cmp dword [esi + 0x14], 8
jb 0x43d4b6
mov esi, dword [esi]
test esi, esi
jne 0x43d4d8
push esi
push 0x54cc64
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.004247f0
jmp 0x43d4ea
push 0xfde9
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0049f230
add esp, 0xc
mov dword [ebp - 0x5c], 3
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0x40
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x134]
push 3
push eax
mov byte [ebp - 4], 2
call fcn.0043e8a0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x43d548
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43d53e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43d9f9
push edx
push ecx
call fcn.004939be
add esp, 8
cmp dword [ebp - 0xd0], 0
je 0x43d9ce
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], 4
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.0043af20
add esp, 8
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
jb 0x43d5bb
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x43d5bb
push eax
push 0x54ca30
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00432180
jmp 0x43d5cd
push 0xfde9
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0049f370
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], 7
cmp edx, 8
jb 0x43d60e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43d604
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43d9fe
push edx
push ecx
call fcn.004939be
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 0x43d6bd
lea ecx, [ebp - 0x58]
call fcn.00415d10
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00421a70
mov esi, dword [ebp - 0x68]
cmp dword [ebp - 0xd0], 0
je 0x43d9d1
lea ecx, [ebp - 0x11c]
call fcn.0043e2a0
test eax, eax
jne 0x43d9d1
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 0x43d9d1
test cl, 4
je 0x43da0d
mov esi, str.ios_base::badbit_set
jmp 0x43da1d
cmp dword [ebp - 0x30], 0
je 0x43d924
cmp dword [edi + 0x14], 8
jb 0x43d6cf
mov edi, dword [edi]
mov eax, dword [0x59930c]
test al, 1
jne 0x43d70e
or eax, 1
mov dword [0x59930c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x547c90
mov dword [0x599300], 0x54c958
mov dword [0x599304], eax
mov byte [0x599308], 0
call fcn.00493db9
mov eax, dword [0x59930c]
add esp, 4
test al, 2
jne 0x43d76a
or eax, 2
mov dword [0x599310], 0x54c970
mov dword [0x59930c], eax
xor eax, eax
push 0x547cc0
mov dword [0x599314], 0x599300
mov dword [0x599324], 2
mov dword [0x59931c], 0
mov dword [0x599320], 0
mov dword [0x599328], eax
mov dword [0x599318], 0x599310
call fcn.00493db9
add esp, 4
mov eax, dword [0x599310]
mov ecx, 0x599310
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 5
test edi, edi
je 0x43d79d
test edi, 0xffff0000
jne 0x43d79d
movzx eax, di
lea ecx, [ebp - 0x64]
push eax
call fcn.0040df70
jmp 0x43d7a6
push edi
lea ecx, [ebp - 0x64]
call fcn.0040d0c0
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
mov eax, dword [0x59930c]
cmovae esi, dword [ebp - 0x28]
mov byte [ebp - 4], 6
test al, 1
jne 0x43d7f4
or eax, 1
mov dword [0x59930c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x547c90
mov dword [0x599300], 0x54c958
mov dword [0x599304], eax
mov byte [0x599308], 0
call fcn.00493db9
mov eax, dword [0x59930c]
add esp, 4
test al, 2
jne 0x43d850
or eax, 2
mov dword [0x599310], 0x54c970
mov dword [0x59930c], eax
xor eax, eax
push 0x547cc0
mov dword [0x599314], 0x599300
mov dword [0x599324], 2
mov dword [0x59931c], 0
mov dword [0x599320], 0
mov dword [0x599328], eax
mov dword [0x599318], 0x599310
call fcn.00493db9
add esp, 4
mov eax, dword [0x599310]
mov ecx, 0x599310
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 7
test esi, esi
je 0x43d883
test esi, 0xffff0000
jne 0x43d883
movzx eax, si
lea ecx, [ebp - 0x60]
push eax
call fcn.0040df70
jmp 0x43d88c
push esi
lea ecx, [ebp - 0x60]
call fcn.0040d0c0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0049d670
add esp, 0xc
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 9
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43d8b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00432180
mov edx, dword [ebp - 0x6c]
or esi, 0xffffffff
mov byte [ebp - 4], 8
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43d8ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x60]
mov eax, esi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43d908
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x64]
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x43d924
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 0x43d941
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00432180
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x43d979
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43d96f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43da03
push edx
push ecx
call fcn.004939be
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 0x43d64e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43d9bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43da08
push edx
push ecx
call fcn.004939be
add esp, 8
jmp 0x43d64e
mov esi, dword [ebp - 0x68]
lea ecx, [ebp - 0x134]
call fcn.0043c400
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.00493dce
mov esp, ebp
pop ebp
ret
call fcn.004e61b8
call fcn.004e61b8
call fcn.004e61b8
call fcn.004e61b8
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.0043e770
add esp, 8
lea ecx, [ebp - 0x54]
push eax
push esi
call fcn.0043bbb0
push 0x57d58c
lea eax, [ebp - 0x54]
push eax
call fcn.004da43f
int3