Function at 0x24052e0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x24bed2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
cmp ebp, ebx
push esi
push edi
mov dword [esp + 0x14], edx
je 0x2405572
cmp edx, ebx
je 0x2405572
or edx, 0xffffffff
xor eax, eax
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov ecx, 6
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
mov dword [esp + 0x74], eax
mov ecx, 0x20
lea edi, [esp + 0x84]
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], edx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
test ecx, ecx
mov dword [esp + 0x10c], ebx
je 0x24054d9
lea edx, [esp + 0x10]
test edx, edx
je 0x24054d9
push ebx
push 0x20
push 3
push ebx
push 1
mov edx, 0x80000000
mov ecx, ebp
call fcn.02481ba0
mov esi, eax
cmp esi, 0xffffffff
jne 0x2405419
lea edx, [esp + 0x1c]
mov ecx, ebp
mov dword [esp + 0x1c], ebx
call fcn.02481c80
test eax, eax
jne 0x24053c1
mov dword [esp + 0x64], 1
jmp 0x24054e1
test byte [esp + 0x1c], 0x10
je 0x24053d5
mov dword [esp + 0x64], 8
jmp 0x24054e1
mov edi, dword [sym.imp.kernel32.dll_Sleep]
mov dword [esp + 0x18], ebx
push 0x64
call edi
push ebx
push 0x20
push 3
push ebx
push 1
mov edx, 0x80000000
mov ecx, ebp
call fcn.02481ba0
mov esi, eax
cmp esi, 0xffffffff
jne 0x2405419
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0x32
mov dword [esp + 0x18], eax
jb 0x24053df
mov dword [esp + 0x64], 1
jmp 0x24054e1
xor eax, eax
mov ecx, 6
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
push ebx
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push 0x19
lea ecx, [esp + 0x2c]
push ecx
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x2405457
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp + 0x64], 5
jmp 0x24054e1
cmp dword [esp + 0x10], 0x19
push esi
je 0x240546f
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp + 0x64], 3
jmp 0x24054e1
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp byte [esp + 0x38], 1
jne 0x24054e1
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x2405500
mov eax, dword [esp + 0x2c]
cmp eax, 0x1a2
jne 0x24054ec
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.0245fae0
test eax, eax
jne 0x2405529
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x24054b3
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x6c]
cmp eax, ebx
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x68], ebx
je 0x2405572
push eax
call fcn.024ad03a
add esp, 4
jmp 0x2405572
mov dword [esp + 0x64], 0xb
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x24054b3
jmp 0x24054ac
cmp eax, 0x9de
jne 0x2405551
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.0245f640
jmp 0x240551a
cmp eax, 2
jne 0x2405551
cmp dword [esp + 0x2c], 0x9de
jne 0x2405551
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.0245f170
test eax, eax
jne 0x2405529
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x2405561
jmp 0x240555a
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x2405539
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [esp + 0x68]
mov dword [esp + 0x3c], 0xffffffff
call fcn.024017d0
mov eax, 1
jmp 0x2405574
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x2405561
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [esp + 0x68]
mov dword [esp + 0x3c], 0xffffffff
call fcn.024017d0
xor eax, eax
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x100
ret