Function at 0x5c0b40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de0ec
mov eax, dword fs:[0]
push eax
mov eax, 0x1008c
call fcn.0053fb70
mov eax, dword [0x676580]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10098], 0
mov dword [ebp - 0x10038], 0
mov dword [ebp - 0x1003c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10094], 0
xor eax, eax
mov dword [ebp - 0x10090], eax
mov dword [ebp - 0x1008c], eax
mov dword [ebp - 0x10088], eax
push 0x48
push 0
lea ecx, [ebp - 0x10084]
push ecx
call fcn.00524800
add esp, 0xc
mov byte [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x27], edx
mov dword [ebp - 0x23], edx
mov dword [ebp - 0x1f], edx
mov word [ebp - 0x1b], dx
mov byte [ebp - 0x19], dl
mov byte [ebp - 0x10034], 0
push 0xffff
push 0
lea eax, [ebp - 0x10033]
push eax
call fcn.00524800
add esp, 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x14]
call fcn.00403290
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
call fcn.0040ee60
movzx ecx, al
test ecx, ecx
je 0x5c0c29
jmp 0x5c0d52
push 0x21
lea ecx, [ebp - 0x14]
call fcn.00402f40
lea edx, [ebp - 0x10094]
push edx
call fcn.005ab5f0
add esp, 4
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
mov ecx, dword [ebp + 0xc]
call fcn.00493020
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x5c0c7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1003c], eax
jmp 0x5c0d52
push 0
lea eax, [ebp - 0x30]
push eax
push 0x10000
lea ecx, [ebp - 0x10034]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1003c], eax
cmp dword [ebp - 0x30], 0
jle 0x5c0cc5
cmp dword [ebp - 0x1003c], 0
je 0x5c0cc5
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10034]
push ecx
lea edx, [ebp - 0x10094]
push edx
call fcn.005ab4c0
add esp, 0xc
cmp dword [ebp - 0x30], 0
jle 0x5c0cd4
cmp dword [ebp - 0x1003c], 0
jne 0x5c0c7a
lea eax, [ebp - 0x10094]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.005ab3d0
add esp, 8
movzx edx, byte [ebp - 0x19]
push edx
movzx eax, byte [ebp - 0x1a]
push eax
movzx ecx, byte [ebp - 0x1b]
push ecx
movzx edx, byte [ebp - 0x1c]
push edx
movzx eax, byte [ebp - 0x1d]
push eax
movzx ecx, byte [ebp - 0x1e]
push ecx
movzx edx, byte [ebp - 0x1f]
push edx
movzx eax, byte [ebp - 0x20]
push eax
movzx ecx, byte [ebp - 0x21]
push ecx
movzx edx, byte [ebp - 0x22]
push edx
movzx eax, byte [ebp - 0x23]
push eax
movzx ecx, byte [ebp - 0x24]
push ecx
movzx edx, byte [ebp - 0x25]
push edx
movzx eax, byte [ebp - 0x26]
push eax
movzx ecx, byte [ebp - 0x27]
push ecx
movzx edx, byte [ebp - 0x28]
push edx
push str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
lea eax, [ebp - 0x14]
push eax
call fcn.00403240
add esp, 0x48
mov dword [ebp - 0x10038], 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0043d440
cmp dword [ebp - 0x2c], 0xffffffff
je 0x5c0d73
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 0xffffffff
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402050
mov eax, dword [ebp - 0x10098]
or eax, 1
mov dword [ebp - 0x10098], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403270
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005236f2
mov esp, ebp
pop ebp
ret