Function at 0x5494fc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileSize]
nop
nop
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x549549
cmp dword [ebp - 8], 0
jge 0x549549
mov eax, 1
jmp 0x54954e
mov eax, 0
test eax, eax
je 0x549564
mov eax, dword [ebp - 4]
cdq
jmp 0x54978c
cmp dword [ebp - 8], 0
jle 0x5496ae
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x198
call fcn.00568e31
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x198
call fcn.00568e31
add esp, 0x10
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
mov ecx, 2
call fcn.004cd55f
add esp, 8
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x5495d2
push ebx
call fcn.00565ef1
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x5495e2
push ebx
call fcn.00565ef1
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x5495f6
push ebx
call fcn.00565ef1
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x54961f
mov eax, 0xa83bba
push eax
push 3
mov ebx, 0x19c
call fcn.00569081
add esp, 0x28
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
cmp ecx, 0x80000101
jne 0x549655
and eax, 0xff
xor edx, edx
jmp 0x5496a4
cmp ecx, 0x80000201
jne 0x549661
cwde
cdq
jmp 0x5496a4
cmp ecx, 0x80000301
jne 0x54966c
cdq
jmp 0x5496a4
cmp ecx, 0x80000401
je 0x5496a4
mov dword [ebp - 0x20], eax
cmp ecx, 0x80000501
je 0x549694
cmp ecx, 0x80000601
je 0x549699
push 2
call fcn.00565f09
add esp, 4
fld dword [ebp - 0x20]
jmp 0x54969f
mov dword [ebp - 0x1c], edx
fld qword [ebp - 0x20]
call fcn.004c9872
jmp 0x54978c
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x198
call fcn.00568e31
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x5496f2
mov eax, 0xa83bba
push eax
push 3
mov ebx, 0x19c
call fcn.00569081
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x54971e
push ebx
call fcn.00565ef1
add esp, 4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp ecx, 0x80000101
jne 0x549738
and eax, 0xff
xor edx, edx
jmp 0x549787
cmp ecx, 0x80000201
jne 0x549744
cwde
cdq
jmp 0x549787
cmp ecx, 0x80000301
jne 0x54974f
cdq
jmp 0x549787
cmp ecx, 0x80000401
je 0x549787
mov dword [ebp - 0x24], eax
cmp ecx, 0x80000501
je 0x549777
cmp ecx, 0x80000601
je 0x54977c
push 2
call fcn.00565f09
add esp, 4
fld dword [ebp - 0x24]
jmp 0x549782
mov dword [ebp - 0x20], edx
fld qword [ebp - 0x24]
call fcn.004c9872
jmp 0x54978c
push edx
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x54979e
push ebx
call fcn.00565ef1
add esp, 4
pop eax
pop edx
mov esp, ebp
pop ebp
ret 4