Function at 0x103ce5a
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push accept
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x103d0b2
push esi
push edi
push ebx
push eax
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x103d09e
cmp esi, ebx
je 0x103d09e
lea edi, [esi + 1]
push edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 0x20], eax
je 0x103d095
push ebx
lea ecx, [ebp - 0x24]
push ecx
push esi
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x103d083
cmp dword [ebp - 0x24], esi
jne 0x103d083
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x50]
mov byte [eax + esi], bl
call fcn.01064459
lea ecx, [ebp - 0x88]
call fcn.01066da2
call fcn.01066d9a
push edi
lea ecx, [ebp - 0x50]
call fcn.010644d2
push eax
lea ecx, [ebp - 0x88]
call fcn.01067060
lea eax, [ebp - 0x2c]
push eax
push 0x1002e10
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x2c], ebx
call fcn.01066c62
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
je 0x103d06e
lea eax, [ebp + 8]
push eax
push 0x1002e24
mov dword [ebp + 8], ebx
call fcn.01066c62
cmp dword [ebp + 8], ebx
je 0x103d06e
mov edi, 0x1002e58
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push 0x1002e34
push ebx
mov dword [ebp - 0x1c], ebx
call fcn.01066d14
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x103d051
push 0x10
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
cmp esi, ebx
pop ecx
je 0x103cfb2
mov eax, dword [ebp - 0x1c]
or dword [ebp - 8], 1
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call fcn.01064dea
push eax
mov ecx, esi
call fcn.0103cd41
mov esi, eax
jmp 0x103cfb4
xor esi, esi
test byte [ebp - 8], 1
je 0x103cfc6
and dword [ebp - 8], 0xfffffffe
lea ecx, [ebp - 0x44]
call fcn.01064b19
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0105f7c8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
push 0x1002e40
mov dword [ebp - 0x30], ebx
call fcn.01066c62
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
je 0x103d051
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [ebp - 0xc], ebx
call fcn.01066c62
cmp dword [ebp - 0xc], ebx
je 0x103d051
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x10], ebx
call fcn.01066fb9
test eax, eax
jl 0x103d031
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x103d031
push dword [ebp - 0x34]
mov ecx, esi
call fcn.0103cdef
jmp 0x103d038
mov dword [ebp - 4], 0x80004005
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
call fcn.01066c44
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x103cffc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], ebx
call fcn.01066c44
mov eax, dword [ebp - 0x18]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x103cf5d
lea ecx, [ebp - 0x88]
call fcn.0106745e
lea ecx, [ebp - 0x50]
call fcn.01064479
jmp 0x103d08a
mov dword [ebp - 4], 0x80004005
push dword [ebp - 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x103d0a5
mov dword [ebp - 4], 0x8007000e
jmp 0x103d0a5
mov dword [ebp - 4], 0x80004005
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
jmp 0x103d0b9
mov dword [ebp - 4], 0x80004005
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8