Function at 0x475d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49560e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x294
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
imul esi, ebx
shl esi, 1
push edi
push esi
mov dword [esp + 0xa0], 0
mov dword [esp + 0x4c], esi
call sub.MFC42.DLL_operatornew
mov edi, eax
push esi
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_operatornew
push esi
mov dword [esp + 0x5c], eax
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov dword [esp + 0x70], eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
fld qword [0x4a0308]
fld qword [0x4a0308]
mov ecx, edx
add esp, 0xc
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x50]
mov ecx, esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0xc]
test eax, eax
jle 0x475e2a
mov ecx, eax
mov edi, esi
mov dword [esp + 0x30], ecx
test ebx, ebx
jle 0x475e1a
mov ecx, edi
mov edx, ebx
movsx eax, word [ecx]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fcom qword [0x4a0300]
fnstsw ax
test ah, 1
je 0x475e12
faddp st(2)
fadd qword [0x4a02c8]
jmp 0x475e14
fstp st(0)
add ecx, 2
dec edx
jne 0x475df0
lea eax, [ebx + ebx]
add edi, eax
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0x30], eax
jne 0x475de8
fxch st(1)
fdiv st(1)
mov ecx, dword [ebp + 0x10]
lea eax, [ecx - 1]
cmp eax, 1
fmul qword [0x4a02f8]
fxch st(1)
fstp st(0)
fstp qword [esp + 0x6c]
jle 0x475fd1
lea edx, [esi + ebx*2]
lea ecx, [esi + ebx*4]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
add esi, 4
lea ecx, [edx + ebx*2 + 2]
dec eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], eax
lea eax, [ebx - 1]
cmp eax, 1
jle 0x475f97
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x40]
add eax, 0xfffffffe
mov dword [esp + 0x30], edx
mov dword [esp + 0x54], eax
movsx ecx, word [edi + 2]
movsx edx, word [ebx - 4]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
movsx eax, word [esi + 4]
fstp qword [esp + 0xa0]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
movsx ecx, word [ebx]
fstp qword [esp + 0xa8]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
movsx edx, word [esi]
fstp qword [esp + 0xb0]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
movsx eax, word [edi]
fstp qword [esp + 0xb8]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
movsx ecx, word [edi + 4]
fstp qword [esp + 0xc0]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
movsx edx, word [ebx - 2]
fstp qword [esp + 0xc8]
mov dword [esp + 0x10], ecx
mov ecx, 9
fild dword [esp + 0x10]
movsx eax, word [esi + 2]
fstp qword [esp + 0xd0]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xa0]
fstp qword [esp + 0xd8]
fild dword [esp + 0x10]
fstp qword [esp + 0xe0]
fld qword [0x4a0308]
fadd qword [eax]
add eax, 8
dec ecx
jne 0x475f55
fmul qword [0x4a0598]
fadd qword [0x49de78]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x30]
add ebx, 2
add esi, 2
add edi, 2
mov word [ecx], ax
mov eax, dword [esp + 0x54]
add ecx, 2
dec eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x54], eax
jne 0x475e9b
mov ebx, dword [ebp + 0x14]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
lea eax, [ebx + ebx]
add edi, eax
add esi, eax
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], edi
dec eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
jne 0x475e71
mov ecx, dword [ebp + 0x10]
dec ecx
cmp ecx, 1
jle 0x476362
lea eax, [ebx + ebx]
lea edx, [ebx - 1]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], edx
lea edx, [eax + ebx*4]
mov dword [esp + 0x54], edx
lea edx, [eax + ebx*2 + 4]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x50]
add eax, 4
dec ecx
lea edx, [edx + ebx*2 + 2]
mov dword [esp + 0x30], eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x60], 1
jle 0x476327
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], edx
sub eax, ecx
mov ecx, dword [esp + 0x60]
dec ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
mov ebx, 8
movsx ecx, word [edx + eax]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
movsx edx, word [eax - 4]
fstp qword [esp + 0xa0]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
movsx edx, word [ecx + 4]
fstp qword [esp + 0xa8]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
movsx edx, word [eax]
fstp qword [esp + 0xb0]
mov dword [esp + 0x1c], edx
movsx edx, word [ecx]
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
fstp qword [esp + 0xb8]
fild dword [esp + 0x1c]
movsx esi, word [edx - 4]
fstp qword [esp + 0xc0]
movsx edx, word [edx]
mov dword [esp + 0x1c], esi
fild dword [esp + 0x1c]
movsx eax, word [eax - 2]
fstp qword [esp + 0xc8]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
movsx ecx, word [ecx + 2]
fstp qword [esp + 0xd0]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
fstp qword [esp + 0xd8]
fild dword [esp + 0x1c]
fstp qword [esp + 0xe0]
lea esi, [edi + 1]
cmp ebx, esi
je 0x4762a2
lea eax, [ebx + edi]
cdq
sub eax, edx
sar eax, 1
fld qword [esp + eax*8 + 0xa0]
fcomp qword [esp + ebx*8 + 0xa0]
lea ecx, [esp + eax*8 + 0xa0]
fnstsw ax
test ah, 0x41
jne 0x476166
mov edx, dword [ecx]
fld qword [esp + ebx*8 + 0xa0]
mov dword [esp + ebx*8 + 0xa0], edx
mov eax, dword [ecx + 4]
mov dword [esp + ebx*8 + 0xa4], eax
fstp qword [ecx]
fld qword [esp + edi*8 + 0xa0]
fcomp qword [esp + ebx*8 + 0xa0]
fnstsw ax
test ah, 0x41
jne 0x4761a5
mov edx, dword [esp + edi*8 + 0xa0]
fld qword [esp + ebx*8 + 0xa0]
mov dword [esp + ebx*8 + 0xa0], edx
mov eax, dword [esp + edi*8 + 0xa4]
mov dword [esp + ebx*8 + 0xa4], eax
fstp qword [esp + edi*8 + 0xa0]
fld qword [ecx]
fcomp qword [esp + edi*8 + 0xa0]
fnstsw ax
test ah, 0x41
jne 0x4761d1
mov edx, dword [ecx]
fld qword [esp + edi*8 + 0xa0]
mov dword [esp + edi*8 + 0xa0], edx
mov eax, dword [ecx + 4]
mov dword [esp + edi*8 + 0xa4], eax
fstp qword [ecx]
mov edx, dword [esp + edi*8 + 0xa8]
fld qword [ecx]
mov dword [ecx], edx
mov eax, dword [esp + edi*8 + 0xac]
mov dword [ecx + 4], eax
mov edx, esi
fstp qword [esp + edi*8 + 0xa8]
mov ecx, ebx
lea esi, [esp + edx*8 + 0xa0]
fld qword [esp + edi*8 + 0xa0]
fcomp qword [esi + 8]
add esi, 8
inc edx
fnstsw ax
test ah, 0x41
jne 0x476212
cmp edx, 8
jl 0x4761f8
lea esi, [esp + ecx*8 + 0xa0]
fld qword [esi - 8]
fcomp qword [esp + edi*8 + 0xa0]
sub esi, 8
dec ecx
fnstsw ax
test ah, 0x41
jne 0x476232
test ecx, ecx
jge 0x476219
cmp ecx, edx
jl 0x476262
mov eax, dword [esp + ecx*8 + 0xa0]
fld qword [esp + edx*8 + 0xa0]
mov dword [esp + edx*8 + 0xa0], eax
mov eax, dword [esp + ecx*8 + 0xa4]
mov dword [esp + edx*8 + 0xa4], eax
fstp qword [esp + ecx*8 + 0xa0]
jmp 0x4761f1
mov eax, dword [esp + ecx*8 + 0xa0]
cmp ecx, 4
fld qword [esp + edi*8 + 0xa0]
mov dword [esp + edi*8 + 0xa0], eax
mov eax, dword [esp + ecx*8 + 0xa4]
mov dword [esp + edi*8 + 0xa4], eax
fstp qword [esp + ecx*8 + 0xa0]
jg 0x476295
mov edi, edx
jl 0x476298
lea ebx, [ecx - 1]
cmp ebx, edi
jg 0x47611b
jmp 0x4762d3
fld qword [esp + edi*8 + 0xa0]
fcomp qword [esp + ebx*8 + 0xa0]
lea ecx, [esp + edi*8 + 0xa0]
lea edx, [esp + ebx*8 + 0xa0]
fnstsw ax
test ah, 0x41
jne 0x4762d3
mov eax, dword [edx]
fld qword [ecx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
fstp qword [edx]
fld qword [esp + 0xc0]
fadd qword [0x49de78]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov word [ecx], ax
mov eax, 2
add edi, eax
add edx, eax
add esi, eax
add ecx, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], edi
dec eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x4c], eax
jne 0x476058
mov ebx, dword [ebp + 0x14]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x30]
add edi, eax
add esi, eax
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], eax
jne 0x476017
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x24]
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x24]
mov ecx, esi
mov esi, dword [esp + 0x50]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebx + ebx]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatornew
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x10]
add esp, 4
mov dword [esp + 0x20], 0
test eax, eax
jle 0x47691e
mov eax, dword [esp + 0x20]
cmp eax, 1
jle 0x47646e
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffffe
cmp eax, ecx
jge 0x47646e
fld qword [0x4a0308]
fld qword [0x4a0308]
lea ecx, [eax - 1]
inc eax
cmp ecx, eax
jge 0x476449
mov edx, ecx
mov esi, dword [ebp + 0xc]
imul edx, ebx
sub eax, ecx
lea edi, [esi + edx*2]
mov esi, eax
test ebx, ebx
jle 0x476440
mov ecx, edi
mov edx, ebx
movsx eax, word [ecx]
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fst qword [esp + 0x34]
fcomp qword [0x4a0308]
fnstsw ax
test ah, 0x41
jne 0x47643a
fld qword [esp + 0x34]
fcomp qword [0x4a02f0]
fnstsw ax
test ah, 1
je 0x47643a
fld qword [esp + 0x34]
faddp st(2)
fadd qword [0x4a02c8]
add ecx, 2
dec edx
jne 0x476401
mov ecx, dword [esp + 0x10]
add edi, ecx
dec esi
jne 0x4763f9
fxch st(1)
fdiv st(1)
fmul qword [0x4a02e8]
fxch st(1)
fstp st(0)
fld qword [esp + 0x6c]
fmul qword [0x49de78]
fld st(1)
fcompp
fnstsw ax
test ah, 1
je 0x476472
fstp st(0)
fld qword [esp + 0x6c]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
fld qword [0x4a0308]
mov ecx, edx
mov dword [esp + 0x54], 0
and ecx, 3
mov dword [esp + 0x58], 0
rep stosb byte es:[edi], al
lea eax, [ebx - 3]
cmp eax, 2
jle 0x4764ff
mov eax, dword [esp + 0x28]
xor edi, edi
lea esi, [eax + 4]
fld qword [0x4a0308]
lea eax, [edi + 4]
cmp edi, eax
jg 0x4764e3
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0xc]
imul ecx, ebx
add ecx, edi
sub eax, edi
inc eax
lea ecx, [edx + ecx*2]
movsx edx, word [ecx]
mov dword [esp + 0x34], edx
add ecx, 2
fild dword [esp + 0x34]
dec eax
faddp st(1)
jne 0x4764d0
fmul qword [0x49f0e0]
call sub.MSVCRT.dll__ftol
inc edi
mov word [esi], ax
lea eax, [ebx - 3]
add esi, 2
lea ecx, [edi + 2]
cmp ecx, eax
jl 0x4764b1
test ebx, ebx
jle 0x47652b
mov ecx, dword [esp + 0x28]
mov edx, ebx
movsx eax, word [ecx]
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fcom qword [esp + 0x54]
fnstsw ax
test ah, 0x41
jne 0x476523
fst qword [esp + 0x54]
add ecx, 2
dec edx
faddp st(1)
jne 0x476509
xor edi, edi
test ebx, ebx
fstp st(0)
jle 0x476905
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x64]
imul eax, ebx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x60], eax
lea esi, [ecx + eax*2]
mov eax, dword [esp + 0x24]
sub edx, eax
sub eax, ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x34], eax
jmp 0x47656a
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add eax, esi
cmp ecx, 1
mov bx, word [eax + edx]
mov dword [esp + 0x30], ebx
mov edx, ebx
jle 0x4768a7
mov ecx, dword [ebp + 0x10]
dec ecx
cmp dword [esp + 0x20], ecx
jge 0x4768a7
cmp edi, 1
jle 0x4768a7
mov ecx, dword [ebp + 0x14]
dec ecx
cmp edi, ecx
jge 0x4768a7
mov ecx, dword [esp + 0x20]
mov esi, dword [ebp + 0x14]
movsx edx, word [eax]
lea eax, [ecx - 1]
mov dword [esp + 0x14], edx
imul eax, esi
fild dword [esp + 0x14]
fstp qword [esp + 0xa0]
inc ecx
mov edx, dword [esp + 0x24]
imul ecx, esi
lea ebx, [eax + edi]
mov dword [esp + 0x18], 0
lea esi, [ecx + edi]
movsx ebx, word [edx + ebx*2 - 2]
movsx esi, word [edx + esi*2 + 2]
mov dword [esp + 0x14], ebx
fild dword [esp + 0x14]
mov dword [esp + 0x14], esi
lea esi, [eax + edi]
add eax, edi
movsx esi, word [edx + esi*2 + 2]
fstp qword [esp + 0xa8]
fild dword [esp + 0x14]
mov dword [esp + 0x14], esi
lea esi, [ecx + edi]
movsx eax, word [edx + eax*2]
fstp qword [esp + 0xb0]
fild dword [esp + 0x14]
movsx esi, word [edx + esi*2 - 2]
fstp qword [esp + 0xb8]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x60]
fild dword [esp + 0x14]
lea ebx, [esi + edi]
add esi, edi
add ecx, edi
movsx ebx, word [edx + ebx*2 - 2]
fstp qword [esp + 0xc0]
movsx esi, word [edx + esi*2 + 2]
mov dword [esp + 0x14], ebx
mov ebx, 8
fild dword [esp + 0x14]
mov dword [esp + 0x14], esi
movsx ecx, word [edx + ecx*2]
fstp qword [esp + 0xc8]
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fstp qword [esp + 0xd0]
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fstp qword [esp + 0xd8]
fild dword [esp + 0x14]
fstp qword [esp + 0xe0]
mov edx, dword [esp + 0x18]
lea esi, [edx + 1]
cmp ebx, esi
je 0x47683f
mov eax, edx
add eax, ebx
cdq
sub eax, edx
sar eax, 1
fld qword [esp + eax*8 + 0xa0]
fcomp qword [esp + ebx*8 + 0xa0]
lea ecx, [esp + eax*8 + 0xa0]
fnstsw ax
test ah, 0x41
jne 0x4766e1
mov edx, dword [ecx]
fld qword [esp + ebx*8 + 0xa0]
mov dword [esp + ebx*8 + 0xa0], edx
mov eax, dword [ecx + 4]
mov dword [esp + ebx*8 + 0xa4], eax
fstp qword [ecx]
mov edx, dword [esp + 0x18]
fld qword [esp + edx*8 + 0xa0]
fcomp qword [esp + ebx*8 + 0xa0]
fnstsw ax
test ah, 0x41
jne 0x47672a
mov edx, dword [esp + edx*8 + 0xa0]
mov eax, dword [esp + 0x18]
fld qword [esp + ebx*8 + 0xa0]
mov dword [esp + ebx*8 + 0xa0], edx
mov edx, dword [esp + eax*8 + 0xa4]
mov dword [esp + ebx*8 + 0xa4], edx
mov edx, eax
fstp qword [esp + edx*8 + 0xa0]
fld qword [ecx]
fcomp qword [esp + edx*8 + 0xa0]
fnstsw ax
test ah, 0x41
jne 0x47675a
mov eax, dword [ecx]
fld qword [esp + edx*8 + 0xa0]
mov dword [esp + edx*8 + 0xa0], eax
mov eax, dword [esp + 0x18]
mov edx, dword [ecx + 4]
mov dword [esp + eax*8 + 0xa4], edx
fstp qword [ecx]
mov edx, dword [esp + 0x18]
fld qword [ecx]
lea eax, [esp + edx*8 + 0xa8]
mov edx, dword [esp + edx*8 + 0xa8]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, esi
fstp qword [eax]
mov ecx, ebx
lea esi, [esp + edx*8 + 0xa0]
mov eax, dword [esp + 0x18]
add esi, 8
inc edx
fld qword [esp + eax*8 + 0xa0]
fcomp qword [esi]
fnstsw ax
test ah, 0x41
jne 0x4767a0
cmp edx, 8
jl 0x476783
lea esi, [esp + ecx*8 + 0xa0]
mov eax, dword [esp + 0x18]
sub esi, 8
dec ecx
fld qword [esi]
fcomp qword [esp + eax*8 + 0xa0]
fnstsw ax
test ah, 0x41
jne 0x4767c3
test ecx, ecx
jge 0x4767a7
cmp ecx, edx
jl 0x4767f3
mov eax, dword [esp + ecx*8 + 0xa0]
fld qword [esp + edx*8 + 0xa0]
mov dword [esp + edx*8 + 0xa0], eax
mov eax, dword [esp + ecx*8 + 0xa4]
mov dword [esp + edx*8 + 0xa4], eax
fstp qword [esp + ecx*8 + 0xa0]
jmp 0x47677c
mov eax, dword [esp + 0x18]
mov esi, dword [esp + ecx*8 + 0xa0]
cmp ecx, 4
fld qword [esp + eax*8 + 0xa0]
mov dword [esp + eax*8 + 0xa0], esi
mov esi, dword [esp + 0x18]
mov eax, dword [esp + ecx*8 + 0xa4]
mov dword [esp + esi*8 + 0xa4], eax
fstp qword [esp + ecx*8 + 0xa0]
jg 0x476830
mov dword [esp + 0x18], edx
jl 0x476833
lea ebx, [ecx - 1]
cmp ebx, dword [esp + 0x18]
jg 0x476691
jmp 0x47686f
mov ecx, dword [esp + 0x18]
lea edx, [esp + ebx*8 + 0xa0]
fld qword [esp + ecx*8 + 0xa0]
fcomp qword [edx]
lea ecx, [esp + ecx*8 + 0xa0]
fnstsw ax
test ah, 0x41
jne 0x47686f
mov eax, dword [edx]
fld qword [ecx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
fstp qword [edx]
fld qword [esp + 0xc0]
fadd qword [0x49de78]
call sub.MSVCRT.dll__ftol
fld qword [0x4a0308]
mov edx, eax
lea eax, [esp + 0xa0]
mov ecx, 9
fadd qword [eax]
add eax, 8
dec ecx
jne 0x476895
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x30]
fstp st(0)
cmp bx, 0x63
jle 0x4768c8
movsx ecx, dx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4768c8
mov word [esi], 0xff
jmp 0x4768f2
movsx edx, dx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fld st(1)
fmul qword [0x4a02e0]
fsubr st(2)
fcompp
fnstsw ax
test ah, 1
je 0x4768ed
mov word [esi], 0xff
jmp 0x4768f2
mov word [esi], 0
mov eax, dword [ebp + 0x14]
inc edi
add esi, 2
cmp edi, eax
mov dword [esp + 0x4c], esi
jl 0x476562
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
fstp st(0)
jl 0x4763bb
mov eax, dword [esp + 0x28]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 0x64
mov dword [esp + 0x88], eax
mov dword [esp + 0x80], eax
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push str.C:Secure1000_tempmask.dat
mov dword [esp + 0xa0], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x476985
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x34]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x84]
lea edx, [esp + 0x80]
push ecx
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x8c]
push edx
mov edx, dword [esp + 0x6c]
push eax
push ebx
push ecx
push edx
call fcn.00476cc0
fild dword [ebp + 0x2c]
mov al, byte [esp + 0x47]
push 8
mov byte [esp + 0xa8], al
fidiv dword [esp + 0x9c]
fstp dword [esp + 0x2c]
fild dword [ebp + 0x28]
fidiv dword [esp + 0xa4]
fstp dword [esp + 0x64]
call sub.MFC42.DLL_operatornew
add esp, 0x1c
mov dword [esp + 0x90], eax
mov ecx, 2
test eax, eax
je 0x4769f3
mov dword [eax], 0
add eax, 4
dec ecx
jne 0x4769e9
mov ecx, dword [esp + 0x90]
lea eax, [ecx + 8]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dl, byte [esp + 0x2f]
push 0x20
mov dword [esp + 0x2ac], 1
mov byte [esp + 0x70], dl
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov esi, edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x34], esi
mov ebx, 2
mov dword [esp + 0x1c], esi
test esi, esi
mov byte [esp + 0x2a8], 2
je 0x476a9b
mov al, byte [esp + 0x8c]
lea ecx, [esp + 0x8c]
mov byte [esi], al
call fcn.00486d40
test eax, eax
jge 0x476a6a
xor eax, eax
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esi + 4], eax
mov edx, dword [esp + 0x94]
mov ecx, esi
push eax
mov eax, dword [esp + 0x94]
push edx
push eax
call fcn.0040e690
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
add esi, 0x10
dec ebx
mov dword [esp + 0x34], esi
jne 0x476a3f
lea esi, [edi + 0x20]
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
fild dword [ebp + 0x14]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
mov byte [esp + 0x2a8], 3
fmul qword [0x49de78]
fild dword [esp + 0x84]
mov dword [eax], ecx
mov eax, dword [edi + 0x14]
fsubr st(1)
fild dword [ebp + 0x10]
fsubr dword [0x4a0590]
fmul dword [esp + 0x48]
fiadd dword [ebp + 0x18]
fisub dword [ebp + 0x24]
fstp dword [eax]
mov eax, dword [edi + 4]
fsub st(1)
fmul dword [esp + 0x10]
fild dword [ebp + 0x1c]
mov dword [eax + 4], edx
mov eax, dword [edi + 0x14]
fmul qword [0x49de78]
faddp st(1)
fstp dword [eax + 4]
mov eax, dword [esp + 0x24]
push eax
fstp st(0)
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x54]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x6c]
push edx
call sub.MFC42.DLL_operatordelete
mov ebx, dword [ebp + 8]
mov al, byte [esp + 0x3b]
add esp, 0xc
test edi, edi
mov byte [ebx], al
jne 0x476b40
xor eax, eax
jmp 0x476b47
mov eax, esi
sub eax, edi
sar eax, 4
test eax, eax
jge 0x476b4d
xor eax, eax
shl eax, 4
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
cmp edi, esi
mov dword [ebx + 4], eax
mov dword [esp + 0x24], eax
je 0x476c06
mov ecx, dword [esp + 0x70]
lea edi, [ecx + 4]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x2a8], 4
je 0x476bed
mov dl, byte [edi - 4]
mov byte [eax], dl
mov ecx, dword [edi]
test ecx, ecx
jne 0x476b92
xor eax, eax
jmp 0x476b9a
mov eax, dword [edi + 4]
sub eax, ecx
sar eax, 2
test eax, eax
jge 0x476ba0
xor eax, eax
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x28]
add esp, 4
mov ebx, eax
mov dword [ecx + 4], eax
mov ecx, dword [edi + 4]
mov esi, dword [edi]
mov dword [esp + 0x34], ecx
cmp esi, ecx
je 0x476be3
push ebx
push 4
call fcn.00476cb0
add esp, 8
test eax, eax
je 0x476bd5
mov edx, dword [esi]
mov dword [eax], edx
mov eax, dword [esp + 0x34]
add esi, 4
add ebx, 4
cmp esi, eax
jne 0x476bc2
mov eax, dword [esp + 0x24]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov ecx, dword [esp + 0x74]
add eax, 0x10
add edi, 0x10
mov dword [esp + 0x24], eax
lea eax, [edi - 4]
cmp eax, ecx
jne 0x476b6f
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x9c], 1
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
cmp ecx, eax
mov byte [esp + 0x2a8], 1
je 0x476c73
mov edx, ecx
lea esi, [edx + 4]
mov edi, dword [esi + 4]
mov ebx, dword [esi]
cmp ebx, edi
je 0x476c50
push ebx
call fcn.0040e790
add ebx, 4
add esp, 4
cmp ebx, edi
jne 0x476c40
mov eax, dword [esi]
push eax
call sub.MFC42.DLL_operatordelete
xor eax, eax
add esp, 4
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x74]
add esi, 0x10
lea ecx, [esi - 4]
cmp ecx, eax
jne 0x476c37
mov edx, dword [esp + 0x70]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x94]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x2a8]
mov eax, dword [ebp + 8]
add esp, 8
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret