Function at 0x100cba00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f19dd
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x10252964]
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 0x100cbcb0
mov eax, dword [ebp + 0x10]
cmp eax, 0xc
jb 0x100cbf91
cmp dword [ebp + 8], 0
jne 0x100cbab7
push dword [ebp - 0x18]
push edx
push eax
push ecx
lea eax, [ebp - 0x60]
push eax
call fcn.100ca8d0
add esp, 0x14
jmp 0x100cbc06
xor edi, edi
cmp dword [ebp + 8], 2
jne 0x100cbe45
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 0x100cbbfa
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.100cb820
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 0x100cbb4c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34], 0xffffffff
push dword [ebp - 0x78]
call fcn.101c135d
add esp, 4
mov byte [ebp - 0x4e], 1
mov byte [ebp - 0x4d], 1
jmp 0x100cbbdd
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.100cfcb0
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x74]
jmp 0x100cbad3
xor edi, edi
cmp byte [ebp - 0x4e], 0
je 0x100cbe45
push 0
push dword [ebp + 0x10]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xb
call fcn.100cfb90
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.100ca0a0
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 0x100cbc93
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 0x20]
add edx, 8
sub eax, 0
je 0x100cbc6f
sub eax, 1
je 0x100cbc78
sub eax, 1
jne 0x100cbc78
test edx, edx
je 0x100cbc78
mov eax, dword [ebp + 0x24]
xchg dword [edx], eax
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x4c]
push eax
call fcn.100cfaa0
mov eax, 2
xchg dword [esi], eax
lea ecx, [ebp - 0x4c]
jmp 0x100cbf1d
cmp eax, 1
je 0x100cbff5
cmp eax, 2
je 0x100cbff5
jmp 0x100cbfcc
mov eax, dword [ebp + 0x14]
cmp eax, 0xc0000000
jne 0x100cbd2b
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.100cb820
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 0x100cbd1a
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.101c135d
add esp, 4
xor edi, edi
jmp 0x100cbe41
cmp eax, 0x80000000
jne 0x100cbdbd
push eax
push dword [ecx]
movzx eax, byte [0x10263950]
lea ecx, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.100ccc20
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 0x100cbdad
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x24], 0xffffffff
je 0x100cbdaa
push dword [ebp - 0x1c]
call fcn.101c135d
add esp, 4
xor edi, edi
jmp 0x100cbe41
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.101c135d
add esp, 4
xor edi, edi
jmp 0x100cbe41
xor edi, edi
cmp eax, 0xc0000001
jne 0x100cbe45
movzx eax, byte [0x10263950]
push accept
push dword [ecx]
lea ecx, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.100ccc20
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 0x100cbe33
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x24], 0xffffffff
je 0x100cbe30
push dword [ebp - 0x1c]
jmp 0x100cbe34
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.101c135d
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 0x100cbf61
lea ecx, [ebp - 0x48]
call fcn.100cfcb0
mov edx, dword [ebp - 0x1c]
mov eax, edx
mov ecx, dword [ebp - 0x18]
or eax, ecx
je 0x100cbe60
cmp edx, 1
jne 0x100cbe94
test ecx, ecx
je 0x100cc048
cmp byte [ebp - 0x4f], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
je 0x100cbeaf
mov edi, accept
jmp 0x100cbeb5
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.100ca0a0
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 0x100cbef9
test eax, eax
jne 0x100cbf05
lea ecx, [ebp - 0x48]
call fcn.100cfcb0
mov eax, dword [esi]
jmp 0x100cbef0
cmp eax, 2
jne 0x100cc071
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x38]
push eax
call fcn.100cfaa0
lea ecx, [ebp - 0x38]
call fcn.100cd3b0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 4], 0x13
cmp eax, 0xffffffff
je 0x100cbf38
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x58]
call fcn.101c135d
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.101c1860
mov esp, ebp
pop ebp
ret 0x20
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x7c]
call fcn.100cc730
push 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x18c]
call fcn.100cc810
push 0x10233934
lea eax, [ebp - 0x18c]
push eax
call fcn.101d78f7
push 0
push 0x12
lea ecx, [ebp - 0x1c]
call fcn.100cc770
push eax
lea ecx, [ebp - 0xb0]
call fcn.100cc810
push 0x10233934
lea eax, [ebp - 0xb0]
push eax
call fcn.101d78f7
push 0
push 0
call fcn.101d78f7
push 0
push 0
call fcn.101d78f7
push 0
push 0x13
lea ecx, [ebp - 0x1c]
call fcn.100cc770
push eax
lea ecx, [ebp - 0xdc]
call fcn.100cc810
push 0x10233934
lea eax, [ebp - 0xdc]
push eax
call fcn.101d78f7
push 0
push 9
lea ecx, [ebp - 0x1c]
call fcn.100cc770
push eax
lea ecx, [ebp - 0x108]
call fcn.100cc810
push 0x10233934
lea eax, [ebp - 0x108]
push eax
call fcn.101d78f7
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.100cc170
add esp, 0x10
push 0
push 0
mov dword [ebp - 4], 0xf
call fcn.101d78f7
push 0
push 0x13
lea ecx, [ebp - 0x7c]
call fcn.100cc770
push eax
lea ecx, [ebp - 0x134]
call fcn.100cc810
push 0x10233934
lea eax, [ebp - 0x134]
push eax
call fcn.101d78f7
push 0
push 0x13
lea ecx, [ebp - 0x1c]
call fcn.100cc770
push eax
lea ecx, [ebp - 0x160]
call fcn.100cc810
push 0x10233934
lea eax, [ebp - 0x160]
push eax
call fcn.101d78f7
int3