Function at 0x5e78e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70d89d
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x76e964]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edx, dword [ebp + 0x1c]
or esi, 0xffffffff
mov dword [ebp - 0x18], eax
mov edi, accept
mov eax, dword [ebp + 0x18]
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x6c], eax
xor al, al
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x74], edx
mov byte [ebp - 0x4e], 0
mov byte [ebp - 0x4f], al
mov byte [ebp - 0x61], al
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], edi
mov byte [ebp - 0x54], al
mov dword [ebp - 0x58], 0
cmp dword [ebp + 8], 1
mov dword [ebp - 4], 0
je 0x5e7b90
mov eax, dword [ebp + 0x10]
cmp eax, 0xc
jb 0x5e7e71
cmp dword [ebp + 8], 0
jne 0x5e7997
push dword [ebp - 0x18]
push edx
push eax
push ecx
lea eax, [ebp - 0x60]
push eax
call fcn.005e67b0
add esp, 0x14
jmp 0x5e7ae6
xor edi, edi
cmp dword [ebp + 8], 2
jne 0x5e7d25
xor al, al
movlpd qword [ebp - 0x48], xmm0
mov byte [ebp - 0x4d], al
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
test al, al
jne 0x5e7ada
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], al
mov dword [ebp - 0x2c], 0
push edx
push 0xc0000000
push dword [ecx]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
push 0
call fcn.005e7700
mov eax, dword [ebp - 0x30]
cmp esi, 0xffffffff
mov edx, dword [ebp - 0x5c]
mov edi, esi
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov dl, byte [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov al, byte [ebp - 0x28]
mov dword [ebp - 0x60], esi
mov byte [ebp - 0x28], dl
mov byte [ebp - 0x54], al
mov byte [ebp - 4], 7
je 0x5e7a2c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34], 0xffffffff
push dword [ebp - 0x78]
call fcn.006dd25d
add esp, 4
mov byte [ebp - 0x4e], 1
mov byte [ebp - 0x4d], 1
jmp 0x5e7abd
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.005ebb90
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x74]
jmp 0x5e79b3
xor edi, edi
cmp byte [ebp - 0x4e], 0
je 0x5e7d25
push 0
push dword [ebp + 0x10]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xb
call fcn.005eba70
push 0xffffffffffffffff
push dword [ebp - 0x6c]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x3c], 0
push 0
push 0
push 0
push 0xc0000000
xorps xmm0, xmm0
lea ecx, [ebp - 0x4c]
push eax
movups xmmword [ebp - 0x4c], xmm0
call fcn.005e5f80
mov esi, dword [ebp - 0x4c]
mov ecx, 1
mov byte [ebp - 4], 0xc
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x5e7b73
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 0x20]
add edx, 8
sub eax, 0
je 0x5e7b4f
sub eax, 1
je 0x5e7b58
sub eax, 1
jne 0x5e7b58
test edx, edx
je 0x5e7b58
mov eax, dword [ebp + 0x24]
xchg dword [edx], eax
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x4c]
push eax
call fcn.005eb980
mov eax, 2
xchg dword [esi], eax
lea ecx, [ebp - 0x4c]
jmp 0x5e7dfd
cmp eax, 1
je 0x5e7ed5
cmp eax, 2
je 0x5e7ed5
jmp 0x5e7eac
mov eax, dword [ebp + 0x14]
cmp eax, 0xc0000000
jne 0x5e7c0b
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 0xc0000000
push dword [ecx]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], 0
push 1
call fcn.005e7700
mov eax, dword [ebp - 0x30]
cmp esi, 0xffffffff
mov dword [ebp - 0x5c], eax
mov edx, esi
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x58], eax
mov al, byte [ebp - 0x28]
mov dword [ebp - 0x60], esi
mov byte [ebp - 0x54], al
mov byte [ebp - 4], 2
je 0x5e7bfa
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.006dd25d
add esp, 4
xor edi, edi
jmp 0x5e7d21
cmp eax, 0x80000000
jne 0x5e7c9d
push eax
push dword [ecx]
movzx eax, byte [0x77f950]
lea ecx, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.005e8b00
mov eax, dword [ebp - 0x24]
mov edx, esi
mov dword [ebp - 0x24], esi
xor ecx, ecx
mov esi, eax
mov byte [ebp - 0x4f], 1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
mov al, byte [ebp - 0x18]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x18], cl
mov byte [ebp - 0x54], al
mov byte [ebp - 4], 3
cmp edx, 0xffffffff
je 0x5e7c8d
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x24], 0xffffffff
je 0x5e7c8a
push dword [ebp - 0x1c]
call fcn.006dd25d
add esp, 4
xor edi, edi
jmp 0x5e7d21
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.006dd25d
add esp, 4
xor edi, edi
jmp 0x5e7d21
xor edi, edi
cmp eax, 0xc0000001
jne 0x5e7d25
movzx eax, byte [0x77f950]
push accept
push dword [ecx]
lea ecx, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.005e8b00
mov eax, dword [ebp - 0x24]
mov edi, esi
mov edx, dword [ebp - 0x5c]
xor ecx, ecx
mov dword [ebp - 0x24], esi
mov esi, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
mov al, byte [ebp - 0x18]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x18], cl
mov byte [ebp - 0x54], al
mov byte [ebp - 4], 4
cmp edi, 0xffffffff
je 0x5e7d13
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x24], 0xffffffff
je 0x5e7d10
push dword [ebp - 0x1c]
jmp 0x5e7d14
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.006dd25d
add esp, 4
mov edi, 1
mov byte [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x5e7e41
lea ecx, [ebp - 0x48]
call fcn.005ebb90
mov edx, dword [ebp - 0x1c]
mov eax, edx
mov ecx, dword [ebp - 0x18]
or eax, ecx
je 0x5e7d40
cmp edx, 1
jne 0x5e7d74
test ecx, ecx
je 0x5e7f28
cmp byte [ebp - 0x4f], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
je 0x5e7d8f
mov edi, accept
jmp 0x5e7d95
add edi, 0xc0000000
push 0xffffffffffffffff
push dword [ebp - 0x6c]
lea eax, [ebp - 0x60]
push 0
push 0
push 0
push edi
push eax
lea ecx, [ebp - 0x38]
call fcn.005e5f80
mov esi, dword [ebp - 0x38]
mov byte [ebp - 4], 0x12
mov eax, dword [esi]
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x3c], 0
nop dword [eax]
cmp eax, 1
je 0x5e7dd9
test eax, eax
jne 0x5e7de5
lea ecx, [ebp - 0x48]
call fcn.005ebb90
mov eax, dword [esi]
jmp 0x5e7dd0
cmp eax, 2
jne 0x5e7f51
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x38]
push eax
call fcn.005eb980
lea ecx, [ebp - 0x38]
call fcn.005e9290
mov eax, dword [ebp - 0x60]
mov dword [ebp - 4], 0x13
cmp eax, 0xffffffff
je 0x5e7e18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x58]
call fcn.006dd25d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006dd760
mov esp, ebp
pop ebp
ret 0x20
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x7c]
call fcn.005e8610
push 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x18c]
call fcn.005e86f0
push 0x74f7ac
lea eax, [ebp - 0x18c]
push eax
call fcn.006f37e7
push 0
push 0x12
lea ecx, [ebp - 0x1c]
call fcn.005e8650
push eax
lea ecx, [ebp - 0xb0]
call fcn.005e86f0
push 0x74f7ac
lea eax, [ebp - 0xb0]
push eax
call fcn.006f37e7
push 0
push 0
call fcn.006f37e7
push 0
push 0
call fcn.006f37e7
push 0
push 0x13
lea ecx, [ebp - 0x1c]
call fcn.005e8650
push eax
lea ecx, [ebp - 0xdc]
call fcn.005e86f0
push 0x74f7ac
lea eax, [ebp - 0xdc]
push eax
call fcn.006f37e7
push 0
push 9
lea ecx, [ebp - 0x1c]
call fcn.005e8650
push eax
lea ecx, [ebp - 0x108]
call fcn.005e86f0
push 0x74f7ac
lea eax, [ebp - 0x108]
push eax
call fcn.006f37e7
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x60]
push dword [ebp - 0x18]
mov byte [ebp - 4], 0x10
push 0
push 1
push eax
call fcn.005e8050
add esp, 0x10
push 0
push 0
mov dword [ebp - 4], 0xf
call fcn.006f37e7
push 0
push 0x13
lea ecx, [ebp - 0x7c]
call fcn.005e8650
push eax
lea ecx, [ebp - 0x134]
call fcn.005e86f0
push 0x74f7ac
lea eax, [ebp - 0x134]
push eax
call fcn.006f37e7
push 0
push 0x13
lea ecx, [ebp - 0x1c]
call fcn.005e8650
push eax
lea ecx, [ebp - 0x160]
call fcn.005e86f0
push 0x74f7ac
lea eax, [ebp - 0x160]
push eax
call fcn.006f37e7
int3