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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xa0
mov ebx, dword [ebp + 0xc]
call fcn.0040b260
cmp dword [ebp + 8], 1
jle 0x40bfe0
mov eax, dword [ebx + 4]
mov edi, 0x40f297
mov ecx, 3
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40c002
sub dword [ebp + 8], 1
lea edx, [ebx + 4]
cmp dword [ebp + 8], 1
je 0x40bfe0
mov eax, dword [ebx + 8]
mov dword [esp + 0x9c], 0
mov ebx, edx
mov dword [esp + 0x98], 0
mov dword [esp + 0x6c], 0xf
lea edx, [esp + 0x98]
mov ecx, eax
xor eax, eax
call fcn.00401600
test eax, eax
jne 0x40bffa
cmp dword [ebp + 8], 2
jne 0x40c025
mov eax, dword [esp + 0x98]
mov dword [esp], str._d_files_n
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
mov ecx, dword [esp + 0x98]
test ecx, ecx
jle 0x40bd04
mov esi, 0x35e61940
xor ebx, ebx
xor edx, edx
mov eax, esi
add ebx, 1
call fcn.00401b10
mov ecx, dword [esp + 0x98]
add esi, 0x10c
cmp ecx, ebx
jg 0x40bce7
mov ebx, dword [esp + 0x9c]
test ebx, ebx
jle 0x40bd3d
mov edi, 0x35ea3020
xor esi, esi
mov eax, edi
mov edx, 1
add esi, 1
call fcn.00401b10
mov ebx, dword [esp + 0x9c]
add edi, 0x10c
cmp ebx, esi
jg 0x40bd16
mov ecx, dword [esp + 0x98]
cmp dword [ebp + 8], 2
jne 0x40c295
mov ebx, 0x35e61940
mov dword [esp + 0x58], 0
mov edi, ebx
cmp dword [esp + 0x58], ecx
jge 0x40c21b
add dword [esp + 0x58], 1
lea esi, [edi + 0x100]
lea ebx, [edi + 0x20c]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x2c], esi
cmp eax, ecx
mov dword [esp + 0x48], eax
jge 0x40bfd5
mov dword [esp + 0x34], edi
mov edi, ebx
lea eax, [edi - 0x100]
mov dword [esp + 0x70], 0
mov dword [esp + 0x3c], eax
movzx ecx, byte [esp + 0x70]
mov eax, 1
xor esi, esi
shl eax, cl
mov ebx, eax
and ebx, 0x79e0
mov dword [esp + 0x68], ebx
mov ebx, eax
and eax, 7
and ebx, 0x618
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x34]
jmp 0x40be34
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x40c061
mov eax, dword [esp + 0x30]
mov dword [esp + 0x7c], 0
test eax, eax
je 0x40bdf6
mov eax, dword [ebx + 0x100]
mov dword [esp + 0x7c], eax
mov eax, 1
mov ecx, esi
shl eax, cl
test eax, 0x79e0
jne 0x40bebc
test eax, 0x618
jne 0x40c079
xor edx, edx
test al, 7
je 0x40be1d
mov edx, dword [edi]
cmp dword [esp + 0x7c], edx
je 0x40bed3
add esi, 1
cmp esi, dword [esp + 0x6c]
je 0x40bfa0
mov edx, dword [ebx + 0x104]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
test edx, edx
mov dword [esp + 0x94], 0
je 0x40be27
mov eax, dword [edi + 4]
test eax, eax
je 0x40be27
mov eax, dword [esp + 0x68]
test eax, eax
je 0x40bdd0
mov edx, dword [ebx + 0x100]
mov ecx, esi
lea eax, [edx + 3]
test edx, edx
cmovns eax, edx
sar eax, 2
mov dword [esp + 0x7c], eax
mov eax, 1
shl eax, cl
test eax, 0x79e0
je 0x40be0a
mov edx, dword [edi]
lea eax, [edx + 3]
test edx, edx
cmovs edx, eax
sar edx, 2
cmp dword [esp + 0x7c], edx
jne 0x40be27
lea eax, [esp + 0x90]
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x80]
mov dword [esp + 4], eax
lea eax, [esp + 0x88]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
call fcn.00402290
lea eax, [esp + 0x94]
lea ecx, [esp + 0x84]
mov edx, esi
mov dword [esp + 4], eax
lea eax, [esp + 0x8c]
mov dword [esp], eax
mov eax, edi
call fcn.00402290
mov eax, dword [esp + 0x90]
cmp eax, dword [esp + 0x94]
fldz
mov dword [esp + 0x60], eax
je 0x40c08b
fild dword [esp + 0x7c]
fdivp st(1)
fld1
fxch st(1)
fucompi st(1)
fstp st(0)
jp 0x40be27
jne 0x40be27
mov eax, dword [esi*4 + 0x40f3e0]
mov dword [esp + 4], ebx
add esi, 1
mov dword [esp], str.__12s__s___12s__s
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax*4 + 0x40f3e0]
mov dword [esp + 8], eax
call sub.msvcrt.dll_printf
mov dword [esp], str.IDENTICAL
call sub.msvcrt.dll_puts
cmp esi, dword [esp + 0x6c]
jne 0x40be34
add dword [esp + 0x70], 1
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x6c]
jne 0x40bd9d
add dword [esp + 0x48], 1
mov ecx, dword [esp + 0x98]
add edi, 0x10c
mov eax, dword [esp + 0x48]
cmp ecx, eax
jg 0x40bd8b
mov edi, dword [esp + 0x34]
add edi, 0x10c
jmp 0x40bd56
mov dword [esp], str.usage:_romcmp___d___dir1__zip1___dir2__zip2_
call sub.msvcrt.dll_puts
mov dword [esp], str._d_enables_a_slower__more_comprehensive_comparison.
call sub.msvcrt.dll_puts
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x6c], 2
jmp 0x40bc9c
mov ecx, dword [ebx + 8]
lea edx, [esp + 0x98]
mov al, 1
call fcn.00401600
test eax, eax
jne 0x40bffa
mov eax, dword [esp + 0x9c]
mov dword [esp], str._d_and__d_files_n
mov dword [esp + 8], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 4], eax
call sub.msvcrt.dll_printf
jmp 0x40bcd5
mov eax, dword [ebx + 0x100]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [esp + 0x7c], eax
jmp 0x40bdf6
mov eax, dword [edi]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov edx, eax
jmp 0x40be1d
cmp eax, 0xff
je 0x40c17b
mov eax, dword [esp + 0x7c]
test eax, eax
jle 0x40bf3b
fstp st(0)
mov eax, dword [ebx + 0x104]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x44], esi
mov dword [esp + 0x5c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x64], edi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x40], ebx
mov ecx, dword [esp + 0x80]
not eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x84]
mov esi, eax
jmp 0x40c14d
mov edi, dword [esp + 0x64]
mov ebx, dword [edi + 4]
movzx edi, byte [ebx + ecx]
test dword [esp + 0x74], edi
mov edx, edi
je 0x40c11a
not edx
movzx edx, dl
test dword [esp + 0x74], edx
jne 0x40c168
movzx edx, byte [ebx + esi]
mov edi, dword [esp + 0x60]
and eax, edi
and edx, edi
cmp eax, edx
sete al
add dword [esp + 0x78], 1
add esi, dword [esp + 0x54]
movzx eax, al
add ecx, dword [esp + 0x50]
add dword [esp + 0x5c], eax
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0x7c]
je 0x40c1ff
mov eax, dword [esp + 0x4c]
movzx eax, byte [eax + ecx]
test dword [esp + 0x74], eax
mov edx, eax
je 0x40c0fc
not edx
movzx edx, dl
test dword [esp + 0x74], edx
je 0x40c0fc
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x64]
fldz
mov ebx, dword [esp + 0x40]
jmp 0x40bf3b
mov eax, dword [esp + 0x7c]
test eax, eax
jle 0x40bf3b
fstp st(0)
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
xor ecx, ecx
add edx, dword [ebx + 0x104]
mov dword [esp + 0x78], 0
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x84]
add eax, dword [edi + 4]
add ebx, 1
mov dword [esp + 0x60], ebx
movzx ebx, byte [eax]
cmp byte [edx], bl
mov ebx, dword [esp + 0x78]
cmove ebx, dword [esp + 0x60]
add ecx, 1
add edx, dword [esp + 0x74]
add eax, dword [esp + 0x64]
cmp ecx, dword [esp + 0x7c]
mov dword [esp + 0x78], ebx
jne 0x40c1c8
mov ebx, dword [esp + 0x5c]
fild dword [esp + 0x78]
jmp 0x40bf3b
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x40]
fild dword [esp + 0x5c]
jmp 0x40bf3b
mov ecx, dword [esp + 0x98]
test ecx, ecx
jle 0x40c24d
mov ebx, 0x35e61940
xor esi, esi
mov eax, dword [ebx + 0x104]
add esi, 1
add ebx, 0x10c
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [ebx - 8], 0
cmp dword [esp + 0x98], esi
jg 0x40c226
mov edi, dword [esp + 0x9c]
xor esi, esi
mov ebx, 0x35e61940
test edi, edi
jle 0x40c289
mov eax, dword [ebx + 0x417e4]
add esi, 1
add ebx, 0x10c
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [ebx + 0x416d8], 0
cmp dword [esp + 0x9c], esi
jg 0x40c25f
call fcn.00402aa0
xor eax, eax
jmp 0x40bffa
test ecx, ecx
jle 0x40c560
mov dword [esp + 0x78], 0x35e61a40
mov dword [esp + 0x44], 0
test ebx, ebx
jle 0x40c547
imul eax, dword [esp + 0x44], 0xdbba0
mov esi, 0x35ea3120
mov dword [esp + 0x40], 0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], str._2d___r
mov edi, esi
imul ecx, ebx
imul eax, ebx
add eax, dword [esp + 0x40]
imul eax, eax, 0x64
cdq
idiv ecx
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], 0
mov dword [esp + 0x70], eax
movzx ecx, byte [esp + 0x48]
mov eax, 1
xor esi, esi
shl eax, cl
mov ebx, eax
and ebx, 0x79e0
mov dword [esp + 0x60], ebx
mov ebx, eax
and eax, 7
and ebx, 0x618
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ebx
jmp 0x40c3ac
mov ebx, dword [esp + 0x3c]
test ebx, ebx
jne 0x40c4d6
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x7c], 0
test ecx, ecx
je 0x40c361
mov eax, dword [eax]
mov dword [esp + 0x7c], eax
mov eax, 1
mov ecx, esi
shl eax, cl
test eax, 0x79e0
jne 0x40c43d
test eax, 0x618
jne 0x40c4ee
xor edx, edx
test al, 7
je 0x40c388
mov edx, dword [edi]
cmp dword [esp + 0x7c], edx
fldz
je 0x40c456
mov eax, dword [esp + 0x70]
fstp dword [eax + esi*4 + 0x413040]
add esi, 1
cmp esi, dword [esp + 0x6c]
je 0x40c500
mov eax, dword [esp + 0x78]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov ebx, dword [eax + 4]
mov dword [esp + 0x94], 0
test ebx, ebx
je 0x40c4cf
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40c4cf
mov edx, dword [esp + 0x60]
test edx, edx
je 0x40c33f
mov eax, dword [esp + 0x78]
mov ecx, esi
mov edx, dword [eax]
lea eax, [edx + 3]
test edx, edx
cmovns eax, edx
sar eax, 2
mov dword [esp + 0x7c], eax
mov eax, 1
shl eax, cl
test eax, 0x79e0
je 0x40c375
mov edx, dword [edi]
fldz
lea eax, [edx + 3]
test edx, edx
cmovs edx, eax
sar edx, 2
cmp dword [esp + 0x7c], edx
jne 0x40c394
lea eax, [esp + 0x90]
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x80]
fstp dword [esp + 0x74]
mov dword [esp + 4], eax
lea eax, [esp + 0x88]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
call fcn.00402290
lea eax, [esp + 0x94]
lea ecx, [esp + 0x84]
mov edx, esi
mov dword [esp + 4], eax
lea eax, [esp + 0x8c]
mov dword [esp], eax
mov eax, edi
call fcn.00402290
mov eax, dword [esp + 0x90]
cmp eax, dword [esp + 0x94]
fld dword [esp + 0x74]
mov dword [esp + 0x64], eax
je 0x40c7b0
fild dword [esp + 0x7c]
fdivp st(1)
jmp 0x40c394
fldz
jmp 0x40c394
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [esp + 0x7c], eax
jmp 0x40c361
mov eax, dword [edi]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov edx, eax
jmp 0x40c388
add dword [esp + 0x48], 1
add dword [esp + 0x70], 0x3c
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x6c]
jne 0x40c310
add dword [esp + 0x40], 1
mov ebx, dword [esp + 0x9c]
mov esi, edi
mov eax, dword [esp + 0x40]
add esi, 0x10c
add dword [esp + 0x30], 0x384
mov ecx, dword [esp + 0x98]
cmp ebx, eax
jg 0x40c2ce
add dword [esp + 0x44], 1
add dword [esp + 0x78], 0x10c
mov eax, dword [esp + 0x44]
cmp eax, ecx
jl 0x40c2ad
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], str.____r
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x98]
mov dword [esp + 0x64], eax
imul eax, dword [esp + 0x6c], 0x3c
mov dword [esp + 0x34], eax
fldz
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x5c], 0x413040
mov ebx, 0xffffffff
mov dword [esp + 0x74], 0xffffffff
mov ecx, 0xffffffff
fld1
mov esi, 0xffffffff
mov dword [esp + 0x70], 0
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x78], 0
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x64]
test eax, eax
jle 0x40c6a9
lea esi, [esi]
test edi, edi
jle 0x40c68e
mov edx, dword [esp + 0x68]
xor eax, eax
jmp 0x40c663
fucomi st(1)
jp 0x40c639
jne 0x40c640
test ebx, ebx
jle 0x40c644
cmp dword [esp + 0x7c], 0
jne 0x40c650
fstp st(2)
fxch st(1)
fxch st(1)
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x78]
xor ebx, ebx
mov dword [esp + 0x74], ecx
mov ecx, eax
jmp 0x40c652
fstp st(0)
jmp 0x40c652
fstp st(0)
jmp 0x40c652
fstp st(0)
jmp 0x40c652
fstp st(0)
add eax, 1
add edx, 0x384
cmp eax, edi
je 0x40c68e
jmp 0x40c663
fxch st(1)
fld dword [edx]
fucomi st(2)
jbe 0x40c610
fstp st(2)
fxch st(1)
mov esi, dword [esp + 0x70]
mov ecx, eax
add eax, 1
add edx, 0x384
cmp eax, edi
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x74], esi
mov esi, dword [esp + 0x78]
jne 0x40c661
fxch st(1)
add dword [esp + 0x78], 1
add dword [esp + 0x68], 0xdbba0
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0x64]
jne 0x40c600
add dword [esp + 0x7c], 1
add dword [esp + 0x60], 4
mov eax, dword [esp + 0x7c]
cmp eax, dword [esp + 0x6c]
jne 0x40c5de
add dword [esp + 0x70], 1
add dword [esp + 0x5c], 0x3c
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x7c]
jne 0x40c5ce
fstp st(0)
cmp esi, 0xffffffff
mov dword [esp + 0x7c], ecx
jne 0x40c92b
fstp st(0)
mov ebx, dword [esp + 0x64]
test ebx, ebx
jle 0x40c754
mov ebx, 0x35e61940
xor esi, esi
jmp 0x40c70f
add esi, 1
add ebx, 0x10c
cmp esi, dword [esp + 0x64]
jge 0x40c74d
mov ecx, dword [ebx + 0x108]
test ecx, ecx
jne 0x40c700
mov eax, ebx
xor ecx, ecx
xor edx, edx
mov dword [esp + 4], 0
mov dword [esp], 0
add esi, 1
call fcn.00402380
mov eax, dword [esp + 0x98]
add ebx, 0x10c
mov dword [esp + 0x64], eax
cmp esi, dword [esp + 0x64]
jl 0x40c70f
mov edi, dword [esp + 0x9c]
test edi, edi
mov eax, edi
jle 0x40d2f0
mov ebx, 0x35ea3020
xor esi, esi
jmp 0x40c781
add esi, 1
add ebx, 0x10c
cmp esi, eax
jge 0x40c214
mov edx, dword [ebx + 0x108]
test edx, edx
jne 0x40c770
xor eax, eax
mov dword [esp + 4], 0
mov dword [esp], 0
xor ecx, ecx
mov edx, ebx
call fcn.00402380
mov eax, dword [esp + 0x9c]
jmp 0x40c770
cmp eax, 0xff
je 0x40c89d
mov edx, dword [esp + 0x7c]
test edx, edx
jle 0x40c4c4
fstp st(0)
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], 0
mov dword [esp + 0x38], esi
mov eax, dword [eax + 4]
mov dword [esp + 0x50], ebx
xor ebx, ebx
mov edi, ebx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x64]
not eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x4c]
movzx eax, byte [eax + edx]
test dword [esp + 0x74], eax
mov ecx, eax
je 0x40c839
not ecx
movzx ecx, cl
test dword [esp + 0x74], ecx
jne 0x40c91c
mov ecx, dword [esp + 0x5c]
mov esi, dword [ecx + 4]
movzx ebx, byte [esi + edx]
test dword [esp + 0x74], ebx
mov ecx, ebx
je 0x40c85b
not ecx
movzx ecx, cl
test dword [esp + 0x74], ecx
jne 0x40c91c
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x64]
movzx ecx, byte [esi + ecx]
and eax, ebx
and ecx, ebx
mov ebx, dword [esp + 0x54]
cmp eax, ecx
sete al
add edi, 1
add dword [esp + 0x68], ebx
movzx eax, al
add edx, dword [esp + 0x50]
add dword [esp + 0x58], eax
cmp edi, dword [esp + 0x7c]
jne 0x40c81a
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x5c]
fild dword [esp + 0x58]
jmp 0x40c4c4
mov eax, dword [esp + 0x7c]
test eax, eax
jle 0x40c4c4
fstp st(0)
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x78]
add edx, dword [eax + 4]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x84]
add eax, dword [edi + 4]
lea ebx, [ecx + 1]
mov esi, ebx
movzx ebx, byte [eax]
cmp byte [edx], bl
cmove ecx, esi
add dword [esp + 0x74], 1
mov esi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x74]
add edx, dword [esp + 0x68]
add eax, dword [esp + 0x64]
cmp ebx, esi
jne 0x40c8e5
mov dword [esp + 0x74], ecx
mov esi, dword [esp + 0x5c]
fild dword [esp + 0x74]
jmp 0x40c4c4
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x5c]
fldz
jmp 0x40c4c4
imul edi, dword [esp + 0x7c], 0x10c
imul eax, esi, 0x10c
fst dword [esp]
mov dword [esp + 4], ebx
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
fstp dword [esp + 0x70]
lea ecx, [eax + 0x35e61940]
mov eax, ecx
mov ecx, dword [esp + 0x74]
lea edx, [edi + 0x35ea3020]
mov dword [esp + 0x78], eax
call fcn.00402380
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [edi + 0x35ea3128], 1
fld dword [esp + 0x70]
mov edx, eax
mov dword [ecx + 0x108], 1
shl edx, 4
sub edx, eax
imul eax, esi, 0x36ee8
add edx, eax
imul eax, dword [esp + 0x7c], 0xe1
add eax, edx
mov edx, dword [esp + 0x9c]
add eax, ebx
mov dword [eax*4 + 0x413040], 0
test edx, edx
jle 0x40cb3a
imul eax, dword [esp + 0x74], 0x3c
imul ecx, esi, 0xdbba0
imul edx, edx, 0x384
add ecx, eax
lea eax, [ecx + 0x413040]
lea edx, [ecx + edx + 0x413040]
mov ecx, dword [esp + 0x6c]
fld dword [eax]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40c9fe
mov dword [eax], 0
fld dword [eax + 4]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40ca10
mov dword [eax + 4], 0
cmp ecx, 2
je 0x40cb2d
fld dword [eax + 8]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40ca2b
mov dword [eax + 8], 0
cmp ecx, 3
je 0x40cb2d
fld dword [eax + 0xc]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40ca46
mov dword [eax + 0xc], 0
fld dword [eax + 0x10]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40ca58
mov dword [eax + 0x10], 0
fld dword [eax + 0x14]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40ca6a
mov dword [eax + 0x14], 0
cmp ecx, 6
je 0x40cb2d
fld dword [eax + 0x18]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40ca85
mov dword [eax + 0x18], 0
cmp ecx, 7
je 0x40cb2d
fld dword [eax + 0x1c]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40caa0
mov dword [eax + 0x1c], 0
fld dword [eax + 0x20]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40cab2
mov dword [eax + 0x20], 0
fld dword [eax + 0x24]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40cac4
mov dword [eax + 0x24], 0
cmp ecx, 0xa
je 0x40cb2d
fld dword [eax + 0x28]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40cadb
mov dword [eax + 0x28], 0
cmp ecx, 0xb
je 0x40cb2d
fld dword [eax + 0x2c]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40caf2
mov dword [eax + 0x2c], 0
fld dword [eax + 0x30]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40cb04
mov dword [eax + 0x30], 0
fld dword [eax + 0x34]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40cb16
mov dword [eax + 0x34], 0
cmp ecx, 0xf
jne 0x40cb2d
fld dword [eax + 0x38]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40cb2d
mov dword [eax + 0x38], 0
add eax, 0x384
cmp eax, edx
jne 0x40c9ee
mov edx, dword [esp + 0x98]
test edx, edx
jle 0x40cd0c
imul ecx, dword [esp + 0x7c], 0xe1
imul edx, edx, 0x36ee8
add edx, ebx
lea eax, [ecx + ebx]
add edx, ecx
mov ecx, dword [esp + 0x6c]
lea edx, [edx*4 + 0x413040]
lea eax, [eax*4 + 0x413040]
fld dword [eax]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40cb80
mov dword [eax], 0
fld dword [eax + 0x3c]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40cb92
mov dword [eax + 0x3c], 0
cmp ecx, 2
je 0x40ccfb
fld dword [eax + 0x78]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40cbad
mov dword [eax + 0x78], 0
cmp ecx, 3
je 0x40ccfb
fld dword [eax + 0xb4]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40cbce
mov dword [eax + 0xb4], 0
fld dword [eax + 0xf0]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40cbe6
mov dword [eax + 0xf0], 0
fld dword [eax + 0x12c]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40cbfe
mov dword [eax + 0x12c], 0
cmp ecx, 6
je 0x40ccfb
fld dword [eax + 0x168]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40cc1f
mov dword [eax + 0x168], 0
cmp ecx, 7
je 0x40ccfb
fld dword [eax + 0x1a4]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40cc40
mov dword [eax + 0x1a4], 0
fld dword [eax + 0x1e0]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40cc58
mov dword [eax + 0x1e0], 0
fld dword [eax + 0x21c]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40cc70
mov dword [eax + 0x21c], 0
cmp ecx, 0xa
je 0x40ccfb
fld dword [eax + 0x258]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40cc91
mov dword [eax + 0x258], 0
cmp ecx, 0xb
je 0x40ccfb
fld dword [eax + 0x294]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40ccae
mov dword [eax + 0x294], 0
fld dword [eax + 0x2d0]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40ccc6
mov dword [eax + 0x2d0], 0
fld dword [eax + 0x30c]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40ccde
mov dword [eax + 0x30c], 0
cmp ecx, 0xf
jne 0x40ccfb
fld dword [eax + 0x348]
fxch st(1)
fucomi st(1)
fstp st(1)
jbe 0x40ccfb
mov dword [eax + 0x348], 0
add eax, 0xdbba0
cmp eax, edx
jne 0x40cb70
fstp st(0)
jmp 0x40cd0e
fstp st(0)
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x94]
lea edx, [esp + 0x90]
call fcn.00401560
mov eax, dword [esp + 0x9c]
test eax, eax
mov dword [esp + 0x78], eax
jle 0x40d017
mov eax, dword [esp + 0x94]
mov dword [esp + 0x2c], ebx
imul edx, esi, 0xdbba0
mov ebx, dword [esp + 0x6c]
xor esi, esi
lea ecx, [eax + 2]
lea edi, [eax + 1]
mov dword [esp + 0x70], ecx
lea ecx, [eax + 3]
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x90]
mov dword [esp + 0x68], ecx
lea ecx, [eax + 4]
mov dword [esp + 0x64], ecx
lea ecx, [eax + 5]
mov dword [esp + 0x60], ecx
lea ecx, [eax + 6]
mov dword [esp + 0x5c], ecx
lea ecx, [eax + 7]
mov dword [esp + 0x58], ecx
lea ecx, [eax + 8]
mov dword [esp + 0x54], ecx
lea ecx, [eax + 9]
mov dword [esp + 0x50], ecx
lea ecx, [eax + 0xa]
mov dword [esp + 0x4c], ecx
lea ecx, [eax + 0xb]
mov dword [esp + 0x48], ecx
lea ecx, [eax + 0xc]
mov dword [esp + 0x44], ecx
lea ecx, [eax + 0xd]
mov dword [esp + 0x40], ecx
lea ecx, [eax + 0xe]
mov dword [esp + 0x3c], ecx
lea ecx, [eax + 0xf]
imul eax, eax, 0x3c
mov dword [esp + 0x38], ecx
mov ecx, 0xfffffc7c
sub ecx, eax
lea edx, [eax + edx + 0x384]
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x30]
lea ecx, [edx + eax + 0x413040]
xor eax, eax
test edi, edi
jle 0x40ced3
cmp edi, 1
mov dword [ecx], 0
je 0x40ced3
cmp edi, 2
mov dword [ecx + 0x3c], 0
je 0x40ced3
cmp edi, 3
mov dword [ecx + 0x78], 0
je 0x40ced3
cmp edi, 4
mov dword [ecx + 0xb4], 0
je 0x40ced3
cmp edi, 5
mov dword [ecx + 0xf0], 0
je 0x40ced3
cmp edi, 6
mov dword [ecx + 0x12c], 0
je 0x40ced3
cmp edi, 7
mov dword [ecx + 0x168], 0
je 0x40ced3
cmp edi, 8
mov dword [ecx + 0x1a4], 0
je 0x40ced3
cmp edi, 9
mov dword [ecx + 0x1e0], 0
je 0x40ced3
cmp edi, 0xa
mov dword [ecx + 0x21c], 0
je 0x40ced3
cmp edi, 0xb
mov dword [ecx + 0x258], 0
je 0x40ced3
cmp edi, 0xc
mov dword [ecx + 0x294], 0
je 0x40ced3
cmp edi, 0xd
mov dword [ecx + 0x2d0], 0
je 0x40ced3
cmp edi, 0xe
mov dword [ecx + 0x30c], 0
je 0x40ced3
mov dword [ecx + 0x348], 0
cmp dword [esp + 0x74], ebx
jge 0x40cff2
cmp ebx, dword [esp + 0x70]
mov dword [edx + eax*4 + 0x412cf8], 0
jle 0x40cff2
cmp ebx, dword [esp + 0x68]
mov dword [edx + eax*4 + 0x412d34], 0
jle 0x40cff2
cmp ebx, dword [esp + 0x64]
mov dword [edx + eax*4 + 0x412d70], 0
jle 0x40cff2
cmp ebx, dword [esp + 0x60]
mov dword [edx + eax*4 + 0x412dac], 0
jle 0x40cff2
cmp ebx, dword [esp + 0x5c]
mov dword [edx + eax*4 + 0x412de8], 0
jle 0x40cff2
cmp ebx, dword [esp + 0x58]
mov dword [edx + eax*4 + 0x412e24], 0
jle 0x40cff2
cmp ebx, dword [esp + 0x54]
mov dword [edx + eax*4 + 0x412e60], 0
jle 0x40cff2
cmp ebx, dword [esp + 0x50]
mov dword [edx + eax*4 + 0x412e9c], 0
jle 0x40cff2
cmp ebx, dword [esp + 0x4c]
mov dword [edx + eax*4 + 0x412ed8], 0
jle 0x40cff2
cmp ebx, dword [esp + 0x48]
mov dword [edx + eax*4 + 0x412f14], 0
jle 0x40cff2
cmp ebx, dword [esp + 0x44]
mov dword [edx + eax*4 + 0x412f50], 0
jle 0x40cff2
cmp ebx, dword [esp + 0x40]
mov dword [edx + eax*4 + 0x412f8c], 0
jle 0x40cff2
cmp ebx, dword [esp + 0x3c]
mov dword [edx + eax*4 + 0x412fc8], 0
jle 0x40cff2
cmp ebx, dword [esp + 0x38]
mov dword [edx + eax*4 + 0x413004], 0
jle 0x40cff2
mov dword [edx + eax*4 + 0x413040], 0
add eax, 1
add ecx, 4
cmp eax, ebx
jne 0x40cde1
add esi, 1
add edx, 0x384
cmp esi, dword [esp + 0x78]
jne 0x40cdd4
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x94]
lea edx, [esp + 0x90]
mov eax, ebx
call fcn.00401560
mov eax, dword [esp + 0x98]
test eax, eax
mov dword [esp + 0x64], eax
jle 0x40c59c
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
xor esi, esi
lea eax, [edx + 1]
lea edi, [edx + 0xf]
lea ebx, [edx*4]
mov dword [esp + 0x78], eax
lea eax, [edx + 2]
mov dword [esp + 0x38], edi
mov dword [esp + 0x74], eax
lea eax, [edx + 3]
mov dword [esp + 0x70], eax
lea eax, [edx + 4]
mov dword [esp + 0x68], eax
lea eax, [edx + 5]
mov dword [esp + 0x60], eax
lea eax, [edx + 6]
mov dword [esp + 0x5c], eax
lea eax, [edx + 7]
mov dword [esp + 0x58], eax
lea eax, [edx + 8]
mov dword [esp + 0x54], eax
lea eax, [edx + 9]
mov dword [esp + 0x50], eax
lea eax, [edx + 0xa]
mov dword [esp + 0x4c], eax
lea eax, [edx + 0xb]
mov dword [esp + 0x48], eax
lea eax, [edx + 0xc]
mov dword [esp + 0x44], eax
lea eax, [edx + 0xd]
mov dword [esp + 0x40], eax
lea eax, [edx + 0xe]
mov edx, 0xffffffc4
sub edx, ebx
mov dword [esp + 0x3c], eax
imul eax, dword [esp + 0x7c], 0xe1
mov dword [esp + 0x7c], edx
add eax, edi
mov edi, dword [esp + 0x6c]
shl eax, 2
mov ebx, dword [esp + 0x7c]
xor edx, edx
lea ebx, [eax + ebx + 0x413040]
test ecx, ecx
jle 0x40d1aa
cmp ecx, 1
mov dword [ebx], 0
je 0x40d1aa
cmp ecx, 2
mov dword [ebx + 4], 0
je 0x40d1aa
cmp ecx, 3
mov dword [ebx + 8], 0
je 0x40d1aa
cmp ecx, 4
mov dword [ebx + 0xc], 0
je 0x40d1aa
cmp ecx, 5
mov dword [ebx + 0x10], 0
je 0x40d1aa
cmp ecx, 6
mov dword [ebx + 0x14], 0
je 0x40d1aa
cmp ecx, 7
mov dword [ebx + 0x18], 0
je 0x40d1aa
cmp ecx, 8
mov dword [ebx + 0x1c], 0
je 0x40d1aa
cmp ecx, 9
mov dword [ebx + 0x20], 0
je 0x40d1aa
cmp ecx, 0xa
mov dword [ebx + 0x24], 0
je 0x40d1aa
cmp ecx, 0xb
mov dword [ebx + 0x28], 0
je 0x40d1aa
cmp ecx, 0xc
mov dword [ebx + 0x2c], 0
je 0x40d1aa
cmp ecx, 0xd
mov dword [ebx + 0x30], 0
je 0x40d1aa
cmp ecx, 0xe
mov dword [ebx + 0x34], 0
je 0x40d1aa
mov dword [ebx + 0x38], 0
cmp dword [esp + 0x78], edi
jge 0x40d2c9
cmp dword [esp + 0x74], edi
mov dword [eax + edx + 0x413008], 0
jge 0x40d2c9
cmp dword [esp + 0x70], edi
mov dword [eax + edx + 0x41300c], 0
jge 0x40d2c9
cmp dword [esp + 0x68], edi
mov dword [eax + edx + 0x413010], 0
jge 0x40d2c9
cmp dword [esp + 0x60], edi
mov dword [eax + edx + 0x413014], 0
jge 0x40d2c9
cmp dword [esp + 0x5c], edi
mov dword [eax + edx + 0x413018], 0
jge 0x40d2c9
cmp dword [esp + 0x58], edi
mov dword [eax + edx + 0x41301c], 0
jge 0x40d2c9
cmp dword [esp + 0x54], edi
mov dword [eax + edx + 0x413020], 0
jge 0x40d2c9
cmp dword [esp + 0x50], edi
mov dword [eax + edx + 0x413024], 0
jge 0x40d2c9
cmp dword [esp + 0x4c], edi
mov dword [eax + edx + 0x413028], 0
jge 0x40d2c9
cmp dword [esp + 0x48], edi
mov dword [eax + edx + 0x41302c], 0
jge 0x40d2c9
cmp dword [esp + 0x44], edi
mov dword [eax + edx + 0x413030], 0
jge 0x40d2c9
cmp dword [esp + 0x40], edi
mov dword [eax + edx + 0x413034], 0
jge 0x40d2c9
cmp dword [esp + 0x3c], edi
mov dword [eax + edx + 0x413038], 0
jge 0x40d2c9
cmp dword [esp + 0x38], edi
mov dword [eax + edx + 0x41303c], 0
jge 0x40d2c9
mov dword [eax + edx + 0x413040], 0
add edx, 0x3c
add ebx, 0x3c
cmp edx, dword [esp + 0x34]
jne 0x40d0e8
add esi, 1
add eax, 0xdbba0
cmp esi, dword [esp + 0x64]
jne 0x40d0db
jmp 0x40c59c
mov eax, dword [esp + 0x64]
test eax, eax
jg 0x40c21f
jmp 0x40c289