Function at 0x461fb8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa18
push ebx
push esi
push edi
lea ebx, [ebp - 0x5e4]
mov edi, 0x4e2f00
mov eax, 0x4d9fa4
call fcn.004c5654
lea edx, [ebp - 0x484]
push edx
call fcn.0043510e
pop ecx
xor ecx, ecx
mov dword [0x4dd4b8], ecx
xor eax, eax
mov dword [0x4e2b5c], eax
mov dword [0x4e2b60], 4
lea edx, [ebp - 0x2c]
mov dword [0x4e2b6c], edx
call fcn.004090c9
mov dword [ebp - 0x30], eax
push ebx
call fcn.0043f38b
pop ecx
xor ecx, ecx
mov dword [ebp - 0x34], ecx
push 0x4da013
push 0x4da001
call sub.cw3220.DLL__fopen
add esp, 8
mov esi, eax
test esi, esi
je 0x46209a
push esi
push 1
push 0x450
lea eax, [ebp - 0x484]
push eax
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 1
jae 0x462057
mov dword [ebp - 0x34], 1
push esi
push 1
push 0x15d
push ebx
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 1
jae 0x462074
mov dword [ebp - 0x34], 1
push esi
push 1
push 0x400
push edi
call sub.cw3220.DLL__fread
add esp, 0x10
cmp eax, 1
jae 0x462091
mov dword [ebp - 0x34], 1
push esi
call sub.cw3220.DLL__fclose
pop ecx
jmp 0x4620b3
push 0x4da016
push 0x4e3700
call sub.cw3220.DLL__strcpy
add esp, 8
mov dword [ebp - 0x34], 1
cmp dword [ebp - 0x34], 0
jne 0x46239a
push 0x450
lea edx, [ebp - 0x484]
push edx
push 0x4e1efc
call sub.cw3220.DLL__memcpy
add esp, 0xc
mov cl, byte [0x4e1f4a]
mov byte [0x4c79bd], cl
lea eax, [ebx + 0x50]
push eax
call sub.cw3220.DLL__atof
pop ecx
fstp dword [0x4d9f3c]
lea edx, [ebx + 0x5b]
push edx
call sub.cw3220.DLL__atof
pop ecx
fstp dword [0x4d9f34]
lea ecx, [ebx + 0x66]
push ecx
call sub.cw3220.DLL__atof
pop ecx
fstp dword [0x4d9f38]
lea eax, [ebx + 0x71]
push eax
call sub.cw3220.DLL__atof
pop ecx
fstp dword [0x4d9f48]
lea edx, [ebx + 0x7c]
push edx
call sub.cw3220.DLL__atof
pop ecx
fstp dword [0x4d9f50]
lea ecx, [ebx + 0x87]
push ecx
call sub.cw3220.DLL__atof
pop ecx
fstp dword [0x4d9f4c]
lea eax, [ebx + 0x92]
push eax
call fcn.0041325b
pop ecx
mov dword [0x4d1184], eax
lea edx, [ebx + 0x99]
push edx
call fcn.0041325b
pop ecx
mov dword [0x4d1188], eax
lea ecx, [ebx + 0xa0]
push ecx
call fcn.0041325b
pop ecx
mov dword [0x4d118c], eax
lea eax, [ebx + 0xa7]
push eax
call fcn.0041325b
pop ecx
mov dword [0x4d1190], eax
lea edx, [ebx + 0xae]
push edx
call sub.cw3220.DLL__atof
pop ecx
fstp dword [0x4d9f64]
lea ecx, [ebx + 0xb9]
push ecx
call sub.cw3220.DLL__atof
pop ecx
fstp dword [0x4d9f78]
lea eax, [ebx + 0xc4]
push eax
call sub.cw3220.DLL__atof
pop ecx
fstp dword [0x4df720]
lea edx, [ebx + 0xcf]
push edx
call sub.cw3220.DLL__atof
pop ecx
fstp dword [0x4da2fc]
lea ecx, [ebx + 0xe1]
push ecx
call sub.cw3220.DLL__atof
pop ecx
fstp dword [0x4d9f28]
lea eax, [ebx + 0xec]
push eax
call sub.cw3220.DLL__atof
pop ecx
fstp dword [0x4d9f24]
lea edx, [ebx + 0xf7]
push edx
call sub.cw3220.DLL__atof
pop ecx
fstp dword [0x4d9f20]
lea ecx, [ebx + 0x102]
push ecx
call fcn.0041325b
pop ecx
mov dword [0x4df5c4], eax
lea eax, [ebx + 0x109]
push eax
call fcn.0041325b
pop ecx
mov dword [ebp - 0x5e8], eax
fild dword [ebp - 0x5e8]
fstp dword [0x4df5c0]
lea edx, [ebx + 0x114]
push edx
call fcn.0041325b
pop ecx
mov dword [ebp - 0x5e8], eax
fild dword [ebp - 0x5e8]
fstp dword [0x4df5bc]
lea ecx, [ebx + 0xda]
push ecx
call fcn.0041325b
pop ecx
mov dword [0x4d9f40], eax
lea eax, [ebx + 0x11f]
push eax
call sub.cw3220.DLL__atof
pop ecx
fstp dword [0x4d11a0]
lea edx, [ebx + 0x12a]
push edx
call sub.cw3220.DLL__atof
pop ecx
fstp dword [0x4d11a4]
lea ecx, [ebx + 0x135]
push ecx
call fcn.0041325b
pop ecx
mov dword [0x4d9f0c], eax
lea eax, [ebx + 0x13c]
push eax
call sub.cw3220.DLL__atof
pop ecx
call sub.cw3220.DLL___ftol
mov dword [0x4c9c9c], eax
lea edx, [ebx + 0x147]
push edx
call sub.cw3220.DLL__atof
pop ecx
fstp dword [0x4d11c0]
lea ecx, [ebx + 0x152]
push ecx
call sub.cw3220.DLL__atof
pop ecx
fstp dword [0x4d11c4]
mov eax, dword [ebx]
mov dword [0x4d9f2c], eax
mov edx, dword [ebx + 4]
mov dword [0x4d9f30], edx
mov ecx, dword [ebx + 8]
mov dword [0x4d9f74], ecx
mov eax, dword [ebx + 0xc]
mov dword [0x4e2ef0], eax
mov edx, dword [ebx + 0x10]
mov dword [0x4df724], edx
mov ecx, dword [ebx + 0x14]
mov dword [0x4da300], ecx
mov eax, dword [ebx + 0x1c]
mov dword [0x4d1194], eax
mov edx, dword [ebx + 0x18]
mov dword [0x4d1198], edx
mov ecx, dword [ebx + 0x38]
mov dword [0x4d119c], ecx
mov eax, dword [ebx + 0x20]
mov dword [0x4da4f0], eax
mov edx, dword [ebx + 0x24]
mov dword [0x4d11a8], edx
mov ecx, dword [ebx + 0x28]
mov dword [0x4d11ac], ecx
mov eax, dword [ebx + 0x2c]
mov dword [0x4d11b0], eax
mov edx, dword [ebx + 0x30]
mov dword [0x4d11b4], edx
mov ecx, dword [ebx + 0x34]
mov dword [0x4d11b8], ecx
mov eax, dword [ebx + 0x3c]
mov dword [0x4d9f1c], eax
mov edx, dword [ebx + 0x40]
mov dword [0x4d9f5c], edx
mov ecx, dword [ebx + 0x44]
mov dword [0x4d9f60], ecx
mov eax, dword [ebx + 0x48]
mov dword [0x4d9f58], eax
mov edx, dword [ebx + 0x4c]
mov dword [0x4d9e94], edx
jmp 0x462742
push 0x4da03f
push 0x4da02d
call sub.cw3220.DLL__fopen
add esp, 8
mov esi, eax
push esi
push 1
push 0x450
push 0x4e1efc
call sub.cw3220.DLL__fwrite
add esp, 0x10
push dword [0x4d9f3c]
lea edx, [ebx + 0x50]
push edx
call fcn.00438d0e
add esp, 8
push dword [0x4d9f34]
lea eax, [ebx + 0x5b]
push eax
call fcn.00438d0e
add esp, 8
push dword [0x4d9f38]
lea ecx, [ebx + 0x66]
push ecx
call fcn.00438d0e
add esp, 8
push dword [0x4d9f48]
lea edx, [ebx + 0x71]
push edx
call fcn.00438d0e
add esp, 8
push dword [0x4d9f50]
lea eax, [ebx + 0x7c]
push eax
call fcn.00438d0e
add esp, 8
push dword [0x4d9f4c]
lea ecx, [ebx + 0x87]
push ecx
call fcn.00438d0e
add esp, 8
push 0xa
lea eax, [ebx + 0x92]
push eax
push dword [0x4d1184]
call sub.cw3220.DLL__itoa
add esp, 0xc
push 0xa
lea edx, [ebx + 0x99]
push edx
push dword [0x4d1188]
call sub.cw3220.DLL__itoa
add esp, 0xc
push 0xa
lea ecx, [ebx + 0xa0]
push ecx
push dword [0x4d118c]
call sub.cw3220.DLL__itoa
add esp, 0xc
push 0xa
lea eax, [ebx + 0xa7]
push eax
push dword [0x4d1190]
call sub.cw3220.DLL__itoa
add esp, 0xc
push dword [0x4d9f64]
lea ecx, [ebx + 0xae]
push ecx
call fcn.00438d0e
add esp, 8
push dword [0x4d9f78]
lea edx, [ebx + 0xb9]
push edx
call fcn.00438d0e
add esp, 8
push dword [0x4df720]
lea eax, [ebx + 0xc4]
push eax
call fcn.00438d0e
add esp, 8
push dword [0x4da2fc]
lea ecx, [ebx + 0xcf]
push ecx
call fcn.00438d0e
add esp, 8
push dword [0x4d9f28]
lea edx, [ebx + 0xe1]
push edx
call fcn.00438d0e
add esp, 8
push dword [0x4d9f24]
lea eax, [ebx + 0xec]
push eax
call fcn.00438d0e
add esp, 8
push dword [0x4d9f20]
lea ecx, [ebx + 0xf7]
push ecx
call fcn.00438d0e
add esp, 8
push 0xa
lea eax, [ebx + 0x102]
push eax
push dword [0x4df5c4]
call sub.cw3220.DLL__itoa
add esp, 0xc
push dword [0x4df5c0]
lea ecx, [ebx + 0x109]
push ecx
call fcn.00438d0e
add esp, 8
push dword [0x4df5bc]
lea edx, [ebx + 0x114]
push edx
call fcn.00438d0e
add esp, 8
push 0xa
lea ecx, [ebx + 0xda]
push ecx
push dword [0x4d9f40]
call sub.cw3220.DLL__itoa
add esp, 0xc
push dword [0x4d11a0]
lea edx, [ebx + 0x11f]
push edx
call fcn.00438d0e
add esp, 8
push dword [0x4d11a4]
lea eax, [ebx + 0x12a]
push eax
call fcn.00438d0e
add esp, 8
push 0xa
lea edx, [ebx + 0x135]
push edx
push dword [0x4d9f0c]
call sub.cw3220.DLL__itoa
add esp, 0xc
fild dword [0x4c9c9c]
add esp, 0xfffffffc
fstp dword [esp]
lea ecx, [ebx + 0x13c]
push ecx
call fcn.00438d0e
add esp, 8
push dword [0x4d11c0]
lea edx, [ebx + 0x147]
push edx
call fcn.00438d0e
add esp, 8
push dword [0x4d11c4]
lea eax, [ebx + 0x152]
push eax
call fcn.00438d0e
add esp, 8
mov edx, dword [0x4d9f2c]
mov dword [ebx], edx
mov ecx, dword [0x4d9f30]
mov dword [ebx + 4], ecx
mov eax, dword [0x4d9f74]
mov dword [ebx + 8], eax
mov edx, dword [0x4e2ef0]
mov dword [ebx + 0xc], edx
mov ecx, dword [0x4df724]
mov dword [ebx + 0x10], ecx
mov eax, dword [0x4da300]
mov dword [ebx + 0x14], eax
mov edx, dword [0x4d1194]
mov dword [ebx + 0x1c], edx
mov ecx, dword [0x4d1198]
mov dword [ebx + 0x18], ecx
mov eax, dword [0x4d119c]
mov dword [ebx + 0x38], eax
mov edx, dword [0x4da4f0]
mov dword [ebx + 0x20], edx
mov ecx, dword [0x4d11a8]
mov dword [ebx + 0x24], ecx
mov eax, dword [0x4d11ac]
mov dword [ebx + 0x28], eax
mov edx, dword [0x4d11b0]
mov dword [ebx + 0x2c], edx
mov ecx, dword [0x4d11b4]
mov dword [ebx + 0x30], ecx
mov eax, dword [0x4d11b8]
mov dword [ebx + 0x34], eax
mov edx, dword [0x4d9f1c]
mov dword [ebx + 0x3c], edx
mov ecx, dword [0x4d9f5c]
mov dword [ebx + 0x40], ecx
mov eax, dword [0x4d9f60]
mov dword [ebx + 0x44], eax
mov edx, dword [0x4d9f58]
mov dword [ebx + 0x48], edx
mov ecx, dword [0x4d9e94]
mov dword [ebx + 0x4c], ecx
push esi
push 1
push 0x15d
push ebx
call sub.cw3220.DLL__fwrite
add esp, 0x10
mov dword [edi], 0x12
mov dword [edi + 4], 0x11
mov dword [edi + 8], 0x10
mov dword [edi + 0xc], 0xf
mov dword [edi + 0x10], 0xd
mov dword [edi + 0x14], 0xe
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 1
mov dword [edi + 0x20], 2
mov dword [edi + 0x24], 3
mov dword [edi + 0x28], 4
mov dword [edi + 0x2c], 5
mov dword [edi + 0x30], 0xc
mov eax, 0xd
lea edx, [eax + 7]
mov dword [edi + eax*4], edx
inc eax
cmp eax, 0x100
jl 0x46271c
push esi
push 1
push 0x400
push edi
call sub.cw3220.DLL__fwrite
add esp, 0x10
push esi
call sub.cw3220.DLL__fclose
pop ecx
mov ecx, dword [0x4e1efc]
mov dword [0x4e2cf8], ecx
mov eax, dword [0x4e2cf8]
sub eax, 1
jae 0x462764
mov dword [0x4e2d04], 0x42c80000
jmp 0x462770
fild dword [0x4e1f00]
fstp dword [0x4e2d04]
fld dword [0x462a24]
fdiv dword [0x4e2d04]
fmul qword [0x462a28]
fstp qword [0x4e2cfc]
mov byte [0x4e2e98], 0xc0
mov byte [0x4e2e99], 0xb1
mov byte [0x4e2e9a], 0xc2
mov byte [0x4e2e9b], 0xb3
add byte [0x4e2e98], 9
add byte [0x4e2e99], 0xc
add byte [0x4e2e9a], 3
add byte [0x4e2e9b], 2
push 0x3c
push 0x4e2e48
call sub.cw3220.DLL__getcwd
add esp, 8
call sub.cw3220.DLL__getdisk
mov dword [0x4e2e84], eax
push 0x1b
call sub.cw3220.DLL___bnew_qui
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x462802
mov word [ebp - 0x18], 0x14
push dword [ebp - 4]
call fcn.0040e058
pop ecx
mov word [ebp - 0x18], 8
mov edx, dword [ebp - 4]
jmp 0x462805
mov edx, dword [ebp - 4]
mov dword [0x4e2d20], edx
mov eax, dword [0x4e2d20]
xor ecx, ecx
mov dword [eax + 3], ecx
mov eax, dword [0x4e2d20]
xor edx, edx
mov dword [eax + 7], edx
mov ecx, dword [0x4e2d20]
xor eax, eax
mov dword [ecx + 0x13], eax
mov edx, dword [0x4e2d20]
xor ecx, ecx
mov dword [edx + 0x17], ecx
mov eax, dword [0x4e2d20]
mov byte [eax], 0
cmp dword [ebp - 0x30], 0
je 0x46284c
mov edx, dword [ebp - 0x2c]
mov dword [0x4e2d20], edx
push 0x170
call sub.cw3220.DLL___bnew_qui
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x462884
mov word [ebp - 0x18], 0x2c
push 0
push dword [ebp - 8]
call fcn.004bb924
add esp, 8
mov edx, dword [0x4e4444]
dec dword [edx]
mov word [ebp - 0x18], 0x20
mov ecx, dword [ebp - 8]
jmp 0x462887
mov ecx, dword [ebp - 8]
mov dword [0x4e2dac], ecx
push 0
push dword [0x4e2dac]
call fcn.0041099e
add esp, 8
mov dword [0x4e2b5c], 0x54
mov dword [0x4e2b60], 4
lea eax, [ebp - 0x2c]
mov dword [0x4e2b6c], eax
call fcn.004090c9
cmp dword [ebp - 0x2c], 0x51bb1d3
je 0x4628cf
xor edx, edx
mov dword [0x4e2dac], edx
push 0x10
call sub.cw3220.DLL___bnew_qui
pop ecx
mov dword [0x4e2df8], eax
mov eax, dword [0x4e2df8]
xor edx, edx
mov dword [eax + 0xc], edx
push 0x10
call sub.cw3220.DLL___bnew_qui
pop ecx
mov dword [0x4e2dfc], eax
mov ecx, dword [0x4e2dfc]
xor eax, eax
mov dword [ecx + 0xc], eax
mov dword [0x4e2b5c], 0x54
mov dword [0x4e2b60], 4
lea edx, [ebp - 0x2c]
mov dword [0x4e2b6c], edx
call fcn.004090c9
cmp dword [ebp - 0x2c], 0x51bb1d3
je 0x462933
mov dword [0x4e2df8], 1
push 0x10
call sub.cw3220.DLL___bnew_qui
pop ecx
mov dword [0x4e37d4], eax
mov ecx, dword [0x4e37d4]
xor eax, eax
mov dword [ecx + 0xc], eax
push 0x10
call sub.cw3220.DLL___bnew_qui
pop ecx
mov dword [0x4e37d8], eax
mov edx, dword [0x4e37d8]
xor ecx, ecx
mov dword [edx + 0xc], ecx
push 0x10
call sub.cw3220.DLL___bnew_qui
pop ecx
mov dword [0x4e37dc], eax
mov eax, dword [0x4e37dc]
xor edx, edx
mov dword [eax + 0xc], edx
push 0x10
call sub.cw3220.DLL___bnew_qui
pop ecx
mov dword [0x4e37e0], eax
mov ecx, dword [0x4e37e0]
xor eax, eax
mov dword [ecx + 0xc], eax
push 0x10
call sub.cw3220.DLL___bnew_qui
pop ecx
mov dword [0x4e2db4], eax
mov edx, dword [0x4e2db4]
xor ecx, ecx
mov dword [edx + 0xc], ecx
mov eax, dword [0x4e2db4]
xor edx, edx
mov dword [eax], edx
mov ecx, dword [0x4e2db4]
xor eax, eax
mov dword [ecx + 4], eax
push 0x10
call sub.cw3220.DLL___bnew_qui
pop ecx
mov dword [0x4e2db8], eax
mov edx, dword [0x4e2db8]
xor ecx, ecx
mov dword [edx + 0xc], ecx
mov eax, dword [0x4e2db8]
xor edx, edx
mov dword [eax], edx
mov ecx, dword [0x4e2db8]
xor eax, eax
mov dword [ecx + 4], eax
push 0x4da042
push 0x4e2e8c
call sub.cw3220.DLL__strcpy
add esp, 8
mov dword [0x4e37c8], 0x400
mov dword [0x4e37cc], 0x300
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret