Function at 0x43d690
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x65b500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43d6d8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406060
push 0x604a24
push dword [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.005cb8ce
add esp, 8
or ebx, 0xffffffff
test eax, eax
jne 0x43d940
call fcn.00406890
mov ecx, eax
test ecx, ecx
je 0x43d959
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
call fcn.00406890
mov ecx, eax
test ecx, ecx
je 0x43d963
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
call fcn.00406890
mov ecx, eax
test ecx, ecx
je 0x43d96d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edx, 1
mov byte [ebp - 4], 3
mov ecx, edx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x43d78c
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00407430
mov edx, 1
mov eax, dword [edi - 8]
mov ecx, edx
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x43d7b2
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00407430
mov edi, dword [ebp - 0x14]
mov edx, 1
mov eax, dword [esi - 8]
sub edx, dword [esi - 4]
sub eax, 0x104
or eax, edx
jge 0x43d7d1
push 0x104
lea ecx, [ebp - 0x18]
call fcn.00407430
mov esi, dword [ebp - 0x18]
push 0
push dword [ebp - 0x10]
push edi
push esi
push dword [ebp + 8]
call fcn.0043df10
push dword [esi - 8]
mov dword [ebp - 0x1c], eax
push esi
call fcn.005cbb65
add esp, 0x1c
test eax, eax
js 0x43d977
cmp eax, dword [esi - 8]
jg 0x43d977
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [edi - 8]
push edi
call fcn.005cbb65
add esp, 8
test eax, eax
js 0x43d977
cmp eax, dword [edi - 8]
jg 0x43d977
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.005cbb65
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x43d977
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x43d977
xor edx, edx
mov dword [eax - 0xc], ecx
mov word [eax + ecx*2], dx
cmp dword [ebp - 0x1c], edx
je 0x43d8ba
cmp dword [esi - 0xc], edx
je 0x43d8ba
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406060
push 0x604a0c
push dword [ebp - 0x1c]
call fcn.005cb8ce
add esp, 8
lea ecx, [ebp - 0x1c]
test eax, eax
jne 0x43d8b2
call fcn.00406220
lea ecx, [ebp - 0x10]
call fcn.00406220
lea ecx, [ebp - 0x14]
call fcn.00406220
lea ecx, [ebp - 0x18]
call fcn.00406220
mov esi, 1
jmp 0x43d90d
call fcn.00406220
mov eax, dword [ebp - 0x10]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 2
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43d8d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x43d8f0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43d90b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x43d92c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x604a0c
push dword [ebp - 0x20]
call fcn.005cb8ce
add esp, 8
test eax, eax
jne 0x43d90b
lea esi, [eax + 1]
jmp 0x43d90d
push 0x80004005
call fcn.004064e0
push 0x80004005
call fcn.004064e0
push 0x80004005
call fcn.004064e0
push 0x80070057
call fcn.004064e0
int3