Function at 0x43f450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579d88
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d7ce0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0044d418
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x43f497
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
push 0x76
push ebx
mov byte [ebp - 4], 1
push ecx
mov dword [ebp - 0x18], ebx
call fcn.00550f40
mov edx, dword [ebp + 8]
add esp, 0xc
cmp dword [edx - 0xc], ebx
jne 0x43f54a
lea esi, [ebp - 0x14]
call fcn.0043e370
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x43f527
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x43f51a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x43f51a
push eax
call fcn.00407af0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x43f512
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp + 8], ebx
jmp 0x43f527
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp + 8]
call fcn.00407870
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f54a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x43f55f
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp + 8]
call fcn.004076d0
mov edx, dword [ebp + 8]
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov edi, eax
test edi, edi
jne 0x43f58f
push 0x5b09b8
jmp 0x43f5c3
push 2
push 0
push 0xffffffffffffff8a
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x43f5a5
xor edi, edi
jmp 0x43f5cf
mov eax, dword [ebp + 0xc]
push 0
lea edx, [ebp - 0x18]
push edx
push 0x76
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
jne 0x43f5cf
push 0x5b09e0
lea ecx, [ebp - 0x10]
push ecx
call fcn.00409220
add esp, 8
test esi, esi
je 0x43f5df
cmp esi, 0xffffffff
je 0x43f5df
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x43f5f5
mov edx, dword [ebp - 0x10]
push 0x30
push 0x5ab178
push edx
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f618
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f63e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8