Function at 0x10041f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x10096748]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x84], 0x14
mov dword [ebp - 0x50], 0xc800
mov eax, dword [ebp - 0x50]
imul eax, dword [ebp - 0x84]
cdq
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], edx
push 0x1008b5b8
mov eax, dword [ebp + 0xc]
push eax
call fcn.1004b125
add esp, 8
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x10041fea
push 0x10089597
mov ecx, dword [ebp + 8]
call fcn.10005580
mov ecx, dword [ebp - 0x70]
or ecx, 1
mov dword [ebp - 0x70], ecx
mov eax, dword [ebp + 8]
jmp 0x10042351
push 2
push 0
push 0
mov edx, dword [ebp - 0x4c]
push edx
call fcn.1004aac3
add esp, 0x10
mov eax, dword [ebp - 0x4c]
push eax
call fcn.1004ba13
add esp, 4
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
push 0
push 0
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.1004aac3
add esp, 0x10
mov edx, dword [ebp - 0x50]
push edx
call fcn.10044d27
add esp, 4
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x74]
cmp ecx, dword [ebp - 0xa8]
jg 0x100420b0
jl 0x10042061
mov edx, dword [ebp - 0x78]
cmp edx, dword [ebp - 0xac]
ja 0x100420b0
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
push 1
mov edx, dword [ebp - 0x48]
push edx
call fcn.1004b967
add esp, 0x10
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x6c], 0
jmp 0x1004208c
mov eax, dword [ebp - 0x6c]
add eax, 1
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp - 0x54]
jge 0x100420a5
mov edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x6c]
movzx eax, byte [edx]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
jmp 0x10042083
cmp dword [ebp - 0x54], 0
jg 0x10042061
jmp 0x1004224d
mov eax, dword [ebp - 0x50]
shl eax, 1
cdq
mov ecx, dword [ebp - 0x78]
sub ecx, eax
mov eax, dword [ebp - 0x74]
sbb eax, edx
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x84]
sub eax, 2
cdq
push edx
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
mov edx, dword [ebp - 0xa4]
push edx
call fcn.10078db0
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], edx
xorpd xmm0, xmm0
movlpd qword [ebp - 0x60], xmm0
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
push 1
mov edx, dword [ebp - 0x48]
push edx
call fcn.1004b967
add esp, 0x10
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x7c], 0
jmp 0x1004212b
mov eax, dword [ebp - 0x7c]
add eax, 1
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
cmp ecx, dword [ebp - 0x54]
jge 0x10042144
mov edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x7c]
movzx eax, byte [edx]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
jmp 0x10042122
mov eax, dword [ebp - 0x50]
cdq
add eax, dword [ebp - 0x60]
adc edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x80], 0
jmp 0x10042166
mov ecx, dword [ebp - 0x80]
add ecx, 1
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x84]
sub edx, 2
cmp dword [ebp - 0x80], edx
jge 0x100421eb
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.1004aac3
add esp, 0x10
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
push 1
mov edx, dword [ebp - 0x48]
push edx
call fcn.1004b967
add esp, 0x10
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x64], 0
jmp 0x100421b5
mov eax, dword [ebp - 0x64]
add eax, 1
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x54]
jge 0x100421ce
mov edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x64]
movzx eax, byte [edx]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
jmp 0x100421ac
mov ecx, dword [ebp - 0x60]
add ecx, dword [ebp - 0x94]
mov edx, dword [ebp - 0x5c]
adc edx, dword [ebp - 0x90]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edx
jmp 0x1004215d
push 0
mov eax, dword [ebp - 0x50]
cdq
mov ecx, dword [ebp - 0x78]
sub ecx, eax
mov eax, dword [ebp - 0x74]
sbb eax, edx
push eax
push ecx
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.1004aac3
add esp, 0x10
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x50]
push eax
push 1
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.1004b967
add esp, 0x10
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x68], 0
jmp 0x10042234
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x54]
jge 0x1004224d
mov ecx, dword [ebp - 0x48]
add ecx, dword [ebp - 0x68]
movzx edx, byte [ecx]
add edx, dword [ebp - 0x24]
mov dword [ebp - 0x24], edx
jmp 0x1004222b
mov eax, dword [ebp - 0x4c]
push eax
call fcn.1004afea
add esp, 4
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
push edx
call fcn.10049a46
add esp, 4
cmp dword [ebp - 0x88], 0
jne 0x10042286
mov dword [ebp - 0x9c], 0
jmp 0x10042296
mov dword [ebp - 0x48], 0x8123
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x78]
add ecx, 0x9d
mov edx, dword [ebp - 0x74]
adc edx, 0
push 0
push 0xc
push edx
push ecx
call fcn.1004f4e0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x58], 0
jmp 0x100422d4
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
cmp dword [ebp - 0x58], 8
jge 0x100422fc
mov eax, dword [ebp - 0x58]
movzx ecx, byte [ebp + eax - 0xc]
push ecx
push str._02x
push 3
mov edx, dword [ebp - 0x58]
lea eax, [ebp + edx*2 - 0x20]
push eax
call fcn.10049a6a
add esp, 0x10
jmp 0x100422cb
mov ecx, 1
shl ecx, 4
mov dword [ebp - 0x8c], ecx
cmp dword [ebp - 0x8c], 0x11
jae 0x10042315
jmp 0x1004231a
call fcn.1004a135
mov edx, dword [ebp - 0x8c]
mov byte [ebp + edx - 0x20], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x44]
call fcn.10005580
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100055c0
mov edx, dword [ebp - 0x70]
or edx, 1
mov dword [ebp - 0x70], edx
lea ecx, [ebp - 0x44]
call fcn.10005610
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004910b
mov esp, ebp
pop ebp
ret