Function at 0x5e565c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040a78c
xor eax, eax
push ebp
push 0x5e58c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
mov byte [esi], 0
mov byte [ebx], 0
mov eax, dword [0x6047b4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx]
mov eax, dword [0x6042e8]
add eax, 8
mov ecx, dword [ebp - 4]
mov edx, 0x5e58e4
call fcn.0040b728
mov eax, dword [0x6047b4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 4]
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 4]
call fcn.0040b5c8
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
call fcn.005d941c
test al, al
jne 0x5e56f3
mov byte [ebx], 1
jmp 0x5e5893
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSizeEx
test eax, eax
jne 0x5e5715
mov byte [ebx], 1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x5e5893
cmp dword [ebp - 0x1c], 0
jne 0x5e5723
cmp dword [ebp - 0x20], 0x10
ja 0x5e5733
jmp 0x5e5725
jg 0x5e5733
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x5e5893
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 4]
call fcn.0040b5c8
mov edx, dword [ebp - 0x28]
mov ecx, ebx
lea eax, [ebp - 0x10]
call fcn.005d98a8
test al, al
je 0x5e57da
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 4]
call fcn.0040b5c8
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 8]
lea eax, [ebp - 0x10]
call fcn.005d9d28
test al, al
jne 0x5e5795
mov byte [ebx], 1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x5e5893
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 8]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + 9]
test al, al
jne 0x5e57c3
cmp dl, 1
jne 0x5e57c3
lea eax, [ebp - 8]
call fcn.005e2288
xor al, 1
mov byte [esi], al
jmp 0x5e57c6
mov byte [esi], 1
cmp byte [esi], 0
jne 0x5e5893
mov eax, dword [ebp - 0xc]
mov byte [eax], 1
jmp 0x5e5893
cmp byte [ebx], 0
je 0x5e57ed
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x5e5893
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 4]
call fcn.0040b5c8
mov edx, dword [ebp - 0x30]
mov ecx, ebx
lea eax, [ebp - 0x10]
call fcn.005d9ae8
test al, al
jne 0x5e5820
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x5e5893
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 4]
call fcn.0040b5c8
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 8]
lea eax, [ebp - 0x10]
call fcn.005d9d28
test al, al
jne 0x5e5857
mov byte [ebx], 1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x5e5893
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 8]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + 9]
test al, al
jne 0x5e5885
cmp dl, 1
jne 0x5e5885
lea eax, [ebp - 8]
call fcn.005e2938
xor al, 1
mov byte [esi], al
jmp 0x5e5888
mov byte [esi], 1
cmp byte [esi], 0
jne 0x5e5893
mov eax, dword [ebp - 0xc]
mov byte [eax], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e58cd
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.0040a768
lea eax, [ebp - 8]
mov edx, dword [0x5d3f80]
call fcn.0040d96c
lea eax, [ebp - 4]
call fcn.0040a698
pop eax
jmp eax