Function at 0x411bb0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub esp, 0x158
push ebx
push ebp
mov ebp, dword [esp + 0x164]
mov eax, dword [ebp + 0x110]
mov ebx, dword [ebp + 0xec]
mov ecx, dword [ebp + 0x114]
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], ebx
imul ebx, eax
add eax, 7
cdq
and edx, 7
add eax, edx
mov dword [esp + 0x4c], ecx
mov ecx, eax
sar ecx, 3
cmp ebx, 0x4000000
push esi
push edi
mov dword [esp + 0x18], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x60], ebx
mov dword [esp + 0x40], ecx
jge 0x411c1b
mov eax, 0x4000000
cdq
idiv ebx
mov dword [esp + 0x4c], eax
jmp 0x411c27
mov dword [esp + 0x4c], 1
mov eax, dword [esp + 0x4c]
mov edi, eax
imul eax, ecx
imul edi, ebx
mov dword [esp + 0x5c], eax
add eax, edi
push eax
mov dword [esp + 0x6c], edi
call dword [sym.imp.MSVCR71.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x70], esi
jne 0x411c58
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret
lea eax, [ebx*8]
lea edx, [esi + edi]
push eax
mov dword [esp + 0x54], edx
call dword [sym.imp.MSVCR71.dll_malloc]
add esp, 4
test eax, eax
mov dword [esp + 0x34], eax
je 0x412081
mov ecx, 0x691930
call fcn.00416ec0
mov edi, dword [sym.imp.MSVCR71.dll_fopen]
push 0x66ab9c
push eax
mov dword [ebp + 0x1b0], eax
call edi
add esp, 8
test eax, eax
mov dword [esp + 0x3c], eax
je 0x412081
mov ecx, 0x691930
call fcn.00416ec0
push 0x66ab9c
push eax
mov dword [ebp + 0x1b4], eax
call edi
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x38], edi
je 0x412067
lea ecx, [ebx + ebx]
test ecx, ecx
jle 0x411ce1
mov edi, dword [esp + 0x34]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
xor edx, edx
test ecx, ecx
jle 0x411d3a
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
lea eax, [ecx*4]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
xor eax, eax
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
lea ecx, [ebp + ebx*4]
mov dword [esp + edx*4 + 0xd8], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + edx*4 + 0xa8], ebp
inc edx
add ebp, ecx
cmp edx, eax
jl 0x411d10
mov ebp, dword [esp + 0x16c]
mov ecx, eax
cmp dword [ebp], 0
jne 0x411d56
mov ebp, dword [ebp + 0x10]
test ebp, ebp
je 0x411d4c
cmp ebp, 1
jne 0x411d56
mov dword [esp + 0x1c], 0x437f0000
jmp 0x411d5e
mov dword [esp + 0x1c], 0
test ecx, ecx
jle 0x411d6f
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0x138]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x2c], ebx
mov ebp, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ebx
jle 0x412049
nop
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
xor edi, edi
test ecx, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], 0x80
jle 0x411f73
jmp 0x411dd0
mov ecx, dword [esp + 0x30]
lea esp, [esp]
test edi, edi
je 0x411ddd
lea edx, [edi - 1]
mov dword [esp + 0x18], edx
jmp 0x411de4
lea eax, [ecx - 1]
mov dword [esp + 0x18], eax
lea esi, [edi + 1]
mov eax, esi
cdq
idiv ecx
mov eax, dword [esp + 0x16c]
lea ecx, [esp + 0x108]
push ecx
push edi
mov dword [esp + 0x7c], esi
mov ebx, edx
mov edx, dword [esp + 0x24]
push edx
push eax
call dword [eax + 0x1a8]
add esp, 0x10
test eax, eax
je 0x411e1e
lea eax, [esp + 0x108]
jmp 0x411e34
mov ecx, dword [esp + 0x44]
mov dl, byte [esp + 0x24]
or byte [ecx], dl
lea eax, [esp + 0x138]
mov byte [esp + 0x13], 1
mov edx, dword [esp + 0x14]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x48], ecx
jle 0x411f3e
lea edx, [esp + 0xd8]
sub edx, eax
lea esi, [esp + 0xa8]
sub eax, esi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x64], eax
jmp 0x411e70
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
lea ebx, [ebx]
lea esi, [esp + ecx*4 + 0xa8]
add eax, esi
mov edx, dword [eax + edx]
fld dword [edx + edi*4]
fadd dword [esp + ecx*4 + 0x78]
fadd dword [eax]
fst dword [esp + 0x28]
fcomp dword [0x66cb3c]
fnstsw ax
test ah, 0x41
jp 0x411ead
mov eax, dword [esi]
mov byte [ebp], 0
mov dword [eax + ebx*4], 0
mov dword [esp + ecx*4 + 0x78], 0
jmp 0x411f28
fld dword [esp + 0x28]
fcomp dword [0x66cb38]
fnstsw ax
test ah, 1
jne 0x411ed5
mov edx, dword [esi]
mov byte [ebp], 0xff
mov dword [edx + ebx*4], 0
mov dword [esp + ecx*4 + 0x78], 0
jmp 0x411f28
fld dword [esp + 0x28]
call fcn.00667ad0
mov dword [esp + 0x58], eax
fild dword [esp + 0x58]
mov ecx, dword [esp + 0x18]
mov byte [ebp], al
mov eax, dword [esi]
fsubr dword [esp + 0x28]
fmul qword [0x66cb30]
fst dword [eax + ebx*4]
fld qword [0x66cb28]
fmul st(1)
fadd dword [eax + edi*4]
fstp dword [eax + edi*4]
fld qword [0x66cb20]
fmul st(1)
fadd dword [eax + ecx*4]
fstp dword [eax + ecx*4]
mov eax, dword [esp + 0x48]
mov ecx, eax
fmul qword [0x66cb18]
fstp dword [esp + eax*4 + 0x78]
mov eax, dword [esp + 0x14]
inc ebp
inc ecx
cmp ecx, eax
mov dword [esp + 0x48], ecx
jl 0x411e62
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x24]
shr eax, 1
test eax, eax
mov dword [esp + 0x24], eax
jne 0x411f5d
mov eax, dword [esp + 0x44]
inc eax
mov dword [esp + 0x24], 0x80
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
mov edi, esi
cmp edi, eax
jl 0x411dc8
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
inc ebx
cmp ebx, eax
mov dword [esp + 0x2c], ebx
jne 0x411fbf
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x68]
mov edi, dword [sym.imp.MSVCR71.dll_fwrite]
push ecx
push 1
push edx
push esi
call edi
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x60]
push eax
push 1
push ecx
push ebx
call edi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x4c]
add esp, 0x20
mov ebp, esi
jmp 0x411fcd
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
add eax, edx
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x14]
xor eax, eax
test edx, edx
jle 0x412001
jmp 0x411fe0
mov ecx, dword [esp + eax*4 + 0xa8]
mov edi, dword [esp + eax*4 + 0xd8]
mov dword [esp + eax*4 + 0xa8], edi
mov dword [esp + eax*4 + 0xd8], ecx
inc eax
cmp eax, edx
jl 0x411fe0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x54]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x411d90
test ebx, ebx
jle 0x412049
mov eax, dword [esp + 0x3c]
mov edi, dword [sym.imp.MSVCR71.dll_fwrite]
mov ecx, ebx
imul ecx, dword [esp + 0x60]
push eax
push 1
push ecx
push esi
call edi
imul ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x60]
push edx
push 1
push ebx
push eax
call edi
add esp, 0x20
movzx ecx, byte [esp + 0x13]
mov edx, dword [esp + 0x16c]
mov edi, dword [esp + 0x38]
mov dword [edx + 0x1b8], ecx
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x3c]
mov ebx, dword [sym.imp.MSVCR71.dll_fclose]
push eax
call ebx
add esp, 4
test edi, edi
je 0x412081
push edi
call ebx
add esp, 4
push esi
mov esi, dword [sym.imp.MSVCR71.dll_free]
call esi
mov eax, dword [esp + 0x38]
add esp, 4
test eax, eax
je 0x41209b
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret