Function at 0x5c41d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x64e0a0]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
push 0x120
mov edi, ecx
call fcn.005421d4
mov esi, eax
add esp, 4
test esi, esi
je 0x5c4534
lea eax, [esp + 0x64]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x58]
push eax
mov dword [esi + 0x44], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 4], 0
mov dword [esi + 0x70], 0
mov dword [esi + 8], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x74], 0
movzx eax, byte [0x65c1e4]
push eax
mov ecx, edi
mov dword [esp + 0x64], 0x104
mov dword [esp + 0x68], 0
call fcn.005b0e80
add esp, 8
sub eax, 0
je 0x5c434e
dec eax
mov eax, dword [esp + 0x58]
je 0x5c42bc
lea ecx, [esp + 0x64]
cmp eax, ecx
je 0x5c42b5
test eax, eax
je 0x5c42b5
push eax
call fcn.00541b50
add esp, 4
xor ebx, ebx
jmp 0x5c441a
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x64], edi
call dword [0x649010]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5c4401
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x5c42f8
cmp eax, 2
jne 0x5c4340
test edi, edi
jle 0x5c4340
mov eax, edi
cmp edi, 0xc8
jl 0x5c430b
mov eax, 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [esp + 0x3c]
sub edi, 0xc8
call dword [0x649010]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5c42e8
jmp 0x5c4401
lea eax, [ebx + 1]
neg eax
sbb eax, eax
and ebx, eax
jmp 0x5c4401
push dword [esp + 0x58]
lea eax, [esp + 0x44]
xor edi, edi
push eax
mov dword [esp + 0x54], edi
call fcn.0041e890
lea eax, [esp + 0x40]
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
push 0
push 0
push 0x20
push 1
push 1
push 0x80
push 0
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x48]
push eax
push 0x80100080
lea eax, [esp + 0x48]
push eax
call fcn.0041edd6
mov ebx, eax
test ebx, ebx
jns 0x5c43e8
cmp ebx, 0xc0000043
je 0x5c43c6
cmp ebx, 0xc000000f
jne 0x5c43e8
test edi, edi
jle 0x5c43e8
mov eax, edi
cmp edi, 0xc8
jl 0x5c43d9
mov eax, 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 0xc8
jmp 0x5c4386
push ebx
call fcn.0041e908
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
js 0x5c43ff
mov ebx, dword [esp + 0x20]
jmp 0x5c4401
xor ebx, ebx
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x64]
cmp eax, ecx
je 0x5c441a
test eax, eax
je 0x5c441a
push eax
call fcn.00541b50
add esp, 4
mov dword [esi], ebx
test ebx, ebx
je 0x5c452b
cmp byte [0x65c1e4], 0
lea eax, [esp + 0x10]
je 0x5c4442
push 0
push eax
xor edx, edx
mov ecx, ebx
call fcn.005b2770
add esp, 8
jmp 0x5c447c
test eax, eax
je 0x5c447a
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x5c446e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5c446a
or eax, 0xffffffff
jmp 0x5c447c
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
xor eax, eax
test eax, eax
je 0x5c4489
mov dword [esi + 0x10], 0xffffffff
jmp 0x5c4490
mov eax, dword [esp + 0x10]
mov dword [esi + 0x10], eax
mov edi, dword [esi + 0x10]
push edi
call fcn.005421d4
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x5c451b
mov ecx, dword [esi]
push edi
mov edx, eax
mov dword [esi + 8], 1
call fcn.005b1af0
add esp, 4
cmp eax, 0xffffffff
je 0x5c451b
cmp eax, dword [esi + 0x10]
jne 0x5c451b
mov ecx, dword [esi]
test ecx, ecx
je 0x5c44d2
call fcn.005b1c00
mov dword [esi], 0
cmp dword [esi + 0x74], 0
je 0x5c44ed
mov eax, dword [esi + 0x10]
test eax, eax
je 0x5c44ed
mov ecx, dword [esi + 4]
push eax
xor edx, edx
call fcn.005a3e10
add esp, 4
lea ecx, [esi + 0xf8]
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x5c4504
push ecx
call fcn.0040d450
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.00541b41
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x28]
test eax, eax
je 0x5c452b
push eax
call fcn.00541b50
add esp, 4
push esi
call fcn.00541b50
add esp, 4
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00541b41
mov esp, ebp
pop ebp
ret