Function at 0x4109b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x462040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x14], edx
push ebx
push esi
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
mov esi, dword [eax + 0x210]
mov eax, dword [eax + 0x214]
mov dword [ebp - 8], 0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], eax
push edi
test eax, eax
jl 0x410f8a
jg 0x4109fe
test esi, esi
je 0x410f8a
mov edi, dword [ebp - 0x24]
xor ebx, ebx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0x1c], edi
lea ecx, [ebx + 3]
mov dword [ebp - 0x24], eax
nop word [eax + eax]
mov dword [ebp - 0xc], 0x62eb20
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x410a6c
add eax, 2
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, reloc.WS2_32.dll_closesocket
jns 0x410a4d
dec eax
or eax, 0xfffffffc
add eax, 1
jne 0x410ac0
nop
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, reloc.WS2_32.dll_closesocket
jns 0x410a68
dec eax
or eax, 0xfffffffc
add eax, 1
je 0x410a50
jmp 0x410ac0
mov eax, dword [ebp - 0xc]
and eax, reloc.WS2_32.dll_closesocket
jns 0x410a7d
dec eax
or eax, 0xfffffffc
add eax, 1
je 0x410ae0
mov ecx, dword [ebp - 0xc]
lea eax, [ebx + 3]
add ecx, 2
imul ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
test al, 1
jne 0x410abb
mov ecx, 5
nop word [eax + eax]
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x410ab0
dec eax
jmp 0x410ab1
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test al, 1
je 0x410aa0
mov ecx, 3
mov ebx, dword [ebp - 0x24]
sub esi, ebx
mov eax, dword [ebp - 0x30]
sbb eax, edi
mov dword [ebp - 0x24], eax
js 0x410b30
jg 0x410ad9
cmp esi, 0x500000
jbe 0x410b30
mov edi, 0x500000
jmp 0x410b32
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp - 0x2c]
test edx, edx
je 0x410ac0
mov eax, dword [ebp - 0xc]
lea ecx, [ebx + 0x17]
add eax, 0xb
cdq
idiv ecx
mov ecx, 3
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
test edx, edx
jne 0x410ac0
mov ebx, 5
nop
mov eax, dword [ebp - 0xc]
cdq
idiv ebx
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x410b20
inc eax
jmp 0x410b21
dec eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
test edx, edx
je 0x410b10
jmp 0x410ac0
mov edi, esi
mov dword [ebp - 0xc], 0x62eb20
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x410b84
add eax, 2
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, reloc.WS2_32.dll_closesocket
jns 0x410b5f
dec eax
or eax, 0xfffffffc
add eax, 1
jne 0x410c1f
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, reloc.WS2_32.dll_closesocket
jns 0x410b7d
dec eax
or eax, 0xfffffffc
add eax, 1
je 0x410b65
jmp 0x410c1f
mov eax, dword [ebp - 0xc]
and eax, reloc.WS2_32.dll_closesocket
jns 0x410b95
dec eax
or eax, 0xfffffffc
add eax, 1
je 0x410bcf
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 3]
add ecx, 2
imul ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
test al, 1
jne 0x410c1f
mov ecx, 5
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x410bc2
dec eax
jmp 0x410bc3
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test al, 1
je 0x410bb2
jmp 0x410c1f
mov eax, dword [ebp - 0xc]
mov ecx, 5
cdq
idiv ecx
test edx, edx
je 0x410c1f
mov eax, dword [ebp - 0xc]
lea ecx, [esi + 0x17]
add eax, 0xb
cdq
idiv ecx
mov ecx, 3
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
test edx, edx
jne 0x410c1f
mov esi, 5
mov eax, dword [ebp - 0xc]
cdq
idiv esi
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x410c11
inc eax
jmp 0x410c12
dec eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
test edx, edx
je 0x410c01
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 8]
push 0
push eax
push edi
push dword [ebp - 0x14]
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410f8a
mov edi, dword [ebp - 8]
test edi, edi
je 0x410f8a
mov dword [ebp - 0xc], 0x62eb20
add ebx, edi
mov eax, dword [ebp - 0xc]
mov ecx, 3
adc dword [ebp - 0x1c], 0
cdq
idiv ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], ebx
test edx, edx
je 0x410caf
add eax, 2
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, reloc.WS2_32.dll_closesocket
jns 0x410c86
dec eax
or eax, 0xfffffffc
add eax, 1
jne 0x410d4f
nop dword [eax]
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, reloc.WS2_32.dll_closesocket
jns 0x410ca8
dec eax
or eax, 0xfffffffc
add eax, 1
je 0x410c90
jmp 0x410d4f
mov eax, dword [ebp - 0xc]
and eax, reloc.WS2_32.dll_closesocket
jns 0x410cc0
dec eax
or eax, 0xfffffffc
add eax, 1
je 0x410cfd
mov ecx, dword [ebp - 0xc]
lea eax, [ebx + 3]
add ecx, 2
imul ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
test al, 1
jne 0x410d4f
mov ecx, 5
nop dword [eax]
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x410cf0
dec eax
jmp 0x410cf1
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test al, 1
je 0x410ce0
jmp 0x410d4f
mov eax, dword [ebp - 0xc]
mov ecx, 5
cdq
idiv ecx
test edx, edx
je 0x410d4f
mov eax, dword [ebp - 0xc]
lea ecx, [ebx + 0x17]
add eax, 0xb
cdq
idiv ecx
mov ecx, 3
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
test edx, edx
jne 0x410d4f
nop word [eax + eax]
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x410d41
inc eax
jmp 0x410d42
dec eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
test edx, edx
je 0x410d30
push dword [ebp - 8]
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x218]
push eax
mov edx, eax
call fcn.004268e0
mov esi, dword [ebp - 8]
add esp, 8
xor eax, eax
neg esi
adc eax, eax
push 1
neg eax
push 0
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
push esi
push dword [eax + 0x20c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x410f8a
mov dword [ebp - 0xc], 0x62eb20
mov ecx, 3
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x410e67
add eax, 2
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, reloc.WS2_32.dll_closesocket
jns 0x410dc7
dec eax
or eax, 0xfffffffc
add eax, 1
jne 0x410dea
nop dword [eax]
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, reloc.WS2_32.dll_closesocket
jns 0x410de8
dec eax
or eax, 0xfffffffc
add eax, 1
je 0x410dd0
mov esi, 5
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
push edi
mov ecx, dword [eax + 0x20c]
call fcn.0040c360
add esp, 4
test eax, eax
je 0x410f8a
mov dword [ebp - 0xc], 0x62eb20
mov ecx, 3
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x410f20
add eax, 2
add eax, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, reloc.WS2_32.dll_closesocket
jns 0x410e42
dec eax
or eax, 0xfffffffc
add eax, 1
jne 0x410f70
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, reloc.WS2_32.dll_closesocket
jns 0x410e60
dec eax
or eax, 0xfffffffc
add eax, 1
je 0x410e48
jmp 0x410f70
mov eax, dword [ebp - 0xc]
and eax, reloc.WS2_32.dll_closesocket
jns 0x410e78
dec eax
or eax, 0xfffffffc
add eax, 1
je 0x410ec0
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 3]
add ecx, 2
mov esi, 5
imul ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
test al, 1
jne 0x410def
nop dword [eax]
mov eax, dword [ebp - 0xc]
cdq
idiv esi
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x410eb0
dec eax
jmp 0x410eb1
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test al, 1
je 0x410ea0
jmp 0x410def
mov eax, dword [ebp - 0xc]
mov ecx, 5
cdq
idiv ecx
test edx, edx
je 0x410f19
mov eax, dword [ebp - 0xc]
lea ecx, [esi + 0x17]
add eax, 0xb
cdq
idiv ecx
mov ecx, 3
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
test edx, edx
jne 0x410dea
mov esi, 5
mov eax, dword [ebp - 0xc]
cdq
idiv esi
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x410f06
inc eax
jmp 0x410f07
dec eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
test edx, edx
je 0x410ef6
jmp 0x410def
mov esi, ecx
jmp 0x410def
mov eax, dword [ebp - 0xc]
and eax, reloc.WS2_32.dll_closesocket
jns 0x410f31
dec eax
or eax, 0xfffffffc
add eax, 1
je 0x410fa0
mov ecx, dword [ebp - 0xc]
lea eax, [edi + 3]
add ecx, 2
imul ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
test al, 1
jne 0x410f6b
nop dword [eax]
mov eax, dword [ebp - 0xc]
cdq
idiv esi
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x410f60
dec eax
jmp 0x410f61
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test al, 1
je 0x410f50
mov ecx, 3
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
cmp edi, dword [ebp - 0x30]
jl 0x410a20
jg 0x410f8a
cmp dword [ebp - 0x24], esi
jb 0x410a20
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434f21
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
cdq
idiv esi
test edx, edx
je 0x410f70
mov eax, dword [ebp - 0xc]
lea ecx, [edi + 0x17]
add eax, 0xb
cdq
idiv ecx
mov ecx, 3
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
test edx, edx
jne 0x410f70
mov eax, dword [ebp - 0xc]
cdq
idiv esi
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x410fd8
inc eax
jmp 0x410fd9
dec eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cdq
idiv ecx
test edx, edx
je 0x410fc8
jmp 0x410f70