Function at 0x43d8b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp edi, 7
jbe 0x43d912
mov eax, dword [ebp + 0xc]
cmp dword [eax], edi
jne 0x43d912
movzx ecx, word [eax + 6]
xor ebx, ebx
test cx, cx
mov esi, eax
cmove esi, ebx
test esi, esi
je 0x43d91d
movzx edx, word [esi + 4]
cmp edx, 0x10
jb 0x43d98c
cmp dword [esi], edx
jb 0x43d98c
lea ebx, [edx - 0x10]
test bl, 7
jne 0x43d98c
mov word [ebp - 0x28], cx
sub edi, edx
add edx, eax
jmp 0x43d927
mov dword [esi], 0
jmp 0x43dbe2
mov word [ebp - 0x28], cx
add edi, 0xfffffff8
lea edx, [eax + 8]
mov ecx, eax
lea eax, [esi + 8]
add ecx, 4
test esi, esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], ecx
cmove eax, ecx
cmp ebx, 0x103
ja 0x43d98c
shr ebx, 2
movzx eax, word [eax]
mov dword [ebp - 0x40], eax
cmp ebx, eax
jb 0x43d98c
mov dword [ebp - 0x38], edx
push 0x20
call fcn.00596296
add esp, 4
mov ecx, eax
movzx eax, word [ebp - 0x28]
mov dword [ebp - 0x24], ecx
push eax
push ebx
push edi
push edi
call fcn.0043d760
test edi, edi
mov ebx, dword [ebp - 0x40]
je 0x43d9a8
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp word [eax + 6], 0
mov edx, dword [ebp - 0x38]
je 0x43d99a
movzx ecx, word [eax + 4]
add eax, ecx
jmp 0x43d99d
mov esi, dword [ebp + 8]
mov dword [esi], 0
jmp 0x43dbe2
add eax, 8
push edi
push edx
push eax
call fcn.00599c40
add esp, 0xc
test esi, esi
je 0x43db06
mov edi, dword [ebp - 0x24]
mov eax, dword [edi]
movzx ecx, word [eax + 4]
add ecx, 0xfffffff0
je 0x43d9d4
add eax, 0x10
mov edx, dword [ebp + 0xc]
add edx, 0x10
push ecx
push edx
push eax
call fcn.00599c40
add esp, 0xc
mov eax, dword [edi]
mov ecx, dword [ebp - 0x3c]
movzx ecx, word [ecx]
mov word [eax + 8], cx
test bx, bx
je 0x43db1e
mov edi, ebx
shl edi, 4
push edi
call fcn.00596296
add esp, 4
mov ebx, eax
add eax, edi
mov dword [ebp - 0x34], eax
xor esi, esi
nop
lea ecx, [ebx + esi]
call fcn.004549b0
add esi, 0x10
cmp edi, esi
jne 0x43da00
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x30], ebx
cmp word [ebp - 0x40], 0
je 0x43db24
xor esi, esi
mov ebx, dword [ebp - 0x30]
jmp 0x43da6d
mov dword [ebp - 0x28], esp
push eax
push eax
mov eax, esp
push ecx
push edi
push eax
call fcn.00454cf0
add esp, 0xc
lea edi, [ebp - 0x20]
mov ecx, edi
call fcn.004549e0
mov esp, dword [ebp - 0x28]
mov ecx, ebx
push edi
call fcn.00454ab0
mov ecx, edi
call fcn.00454b40
add esi, 1
add ebx, 0x10
cmp dword [ebp - 0x40], esi
je 0x43db8a
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax + esi*4]
push edi
call fcn.00454cd0
add esp, 4
test al, al
jne 0x43db2f
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x43da30
mov dword [ebp - 0x28], esp
push eax
push eax
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
mov eax, esp
mov dword [eax], 0
test edi, edi
je 0x43daf9
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
add edx, 1
cmp edx, 2
jb 0x43dadf
mov dword [ebp - 0x48], eax
call fcn.004835e0
mov eax, dword [ebp - 0x2c]
push dword [eax]
call fcn.00498c60
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov dword [ecx], 0
cmp edi, 0xffffffff
je 0x43daef
mov dword [ecx], edi
mov edi, eax
call fcn.004835e0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x38]
call fcn.004be7a6
mov esp, dword [ebp - 0x3c]
jmp 0x43da42
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax]
mov edi, dword [ebp - 0x24]
mov ecx, dword [edi]
mov word [ecx + 4], ax
test bx, bx
jne 0x43d9e7
xor ecx, ecx
xor edx, edx
jmp 0x43db93
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x24]
jmp 0x43db93
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov edi, dword [ebp - 0x30]
cmp dword [ebp - 0x34], edi
mov ebx, dword [ebp - 0x44]
je 0x43db5d
mov esi, edi
add esi, 0xfffffff0
nop dword [eax + eax]
lea ecx, [esi + ebx]
call fcn.00454b40
add ebx, 0xfffffff0
jne 0x43db50
push edi
call fcn.00596316
add esp, 4
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x43dbc1
mov esi, dword [ebx + 0x14]
cmp esi, edi
je 0x43dbb3
add esi, 0xfffffff0
mov ecx, esi
call fcn.00454b40
cmp edi, esi
jne 0x43db77
mov eax, dword [ebx + 0x10]
jmp 0x43dbb5
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov esi, esp
push eax
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov ecx, edi
call fcn.0043dc20
mov esp, esi
mov esi, dword [ebp + 8]
mov dword [esi], edi
jmp 0x43dbe2
mov eax, edi
mov dword [ebx + 0x14], edi
push eax
call fcn.00596316
add esp, 4
mov eax, dword [ebx]
mov dword [ebx], 0
test eax, eax
je 0x43dbd6
push eax
call fcn.00499860
add esp, 4
push ebx
call fcn.00596316
add esp, 4
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret