Function at 0x48101d
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x49a875
call fcn.00497cb0
sub esp, 0x9c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x1c], 0x10
jb 0x48103b
mov eax, dword [ebx + 8]
jmp 0x48103e
lea eax, [ebx + 8]
push eax
call fcn.00482eeb
test al, al
pop ecx
je 0x481068
cmp dword [ebx + 0x1c], 0x10
jb 0x481054
mov eax, dword [ebx + 8]
jmp 0x481057
lea eax, [ebx + 8]
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.MSVCR71.dll__stati64]
test eax, eax
pop ecx
pop ecx
je 0x481070
xor eax, eax
inc eax
jmp 0x481299
mov eax, dword [ebp - 0x38]
or eax, dword [ebp - 0x34]
jne 0x481085
mov eax, dword [ebp + 0x18]
and dword [eax], 0
xor eax, eax
jmp 0x481299
push esi
push edi
lea ecx, [ebp - 0xa8]
call fcn.00483344
and dword [ebp - 4], 0
mov eax, dword [ebp - 0xa8]
push ebx
lea ecx, [ebp - 0xa8]
call dword [eax + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0xa8]
push eax
lea edi, [ebp - 0x1c]
mov esi, 0x4bbc08
call fcn.004817aa
mov eax, dword [ebp - 0x1c]
cmp eax, dword [0x4bbc0c]
je 0x48110c
mov ecx, dword [eax + 0x4c]
cmp ecx, dword [ebp - 0x2c]
jne 0x48110c
mov ecx, dword [eax + 0x50]
cmp ecx, dword [ebp - 0x28]
jne 0x48110c
mov ecx, dword [eax + 0x58]
cmp ecx, dword [ebp - 0x38]
jne 0x48110c
mov ecx, dword [eax + 0x5c]
cmp ecx, dword [ebp - 0x34]
jne 0x48110c
mov eax, dword [eax + 0x48]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor ebx, ebx
jmp 0x481286
cmp dword [ebx + 0x1c], 0x10
jb 0x481117
mov eax, dword [ebx + 8]
jmp 0x48111a
lea eax, [ebx + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
mov dword [ebp - 0x1c], esi
jne 0x481145
inc ebx
jmp 0x481286
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jl 0x481167
mov eax, dword [ebp + 0x10]
jg 0x48115b
cmp eax, ebx
jbe 0x481167
sub eax, dword [ebp + 8]
sbb ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jl 0x481198
jg 0x481175
cmp dword [ebp + 8], ebx
jbe 0x481198
mov ecx, eax
push ebx
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 8]
sar ecx, 0x1f
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x481198
push 2
pop ebx
jmp 0x481286
mov dword [ebp - 0x20], edi
mov edi, 0x8000
push edi
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 0xc], eax
jmp 0x48120b
cmp dword [ebp - 0x18], ebx
je 0x481211
cmp dword [ebp - 0x10], ebx
jl 0x4811e9
jg 0x4811cb
cmp dword [ebp - 0x14], ebx
jbe 0x4811e9
cmp ebx, dword [ebp - 0x10]
jl 0x4811e0
jg 0x4811da
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jbe 0x4811e0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x14], eax
sbb dword [ebp - 0x10], ebx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.00482da7
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x10]
je 0x481211
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x4811ba
push dword [ebp + 0xc]
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
jl 0x481236
jg 0x48122f
cmp dword [ebp - 0x14], ebx
jbe 0x481236
push 3
jmp 0x481192
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x18]
not eax
push ebx
mov dword [ebp - 0x70], eax
mov dword [ecx], eax
call dword [sym.imp.MSVCR71.dll_time]
add eax, 0xbb8
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0xa8]
push eax
push 0x4bbc08
call fcn.0048148f
push 8
pop ecx
lea esi, [ebp - 0x70]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.004835c3
pop edi
mov eax, ebx
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14