Function at 0x417650
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x5c
mov eax, dword [0x44d6b0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, 1
add dword [edi + 0x188c], ebp
mov eax, dword [edi + 0x188c]
xor ebx, ebx
cmp eax, 0x64
jl 0x417682
mov dword [edi + 0x188c], ebx
push 0x3f
lea eax, [esp + 0x2d]
push ebx
push eax
mov byte [esp + 0x34], bl
call fcn.00429eb0
mov ecx, dword [edi + 0x188c]
push ecx
lea edx, [esp + 0x38]
push str.code_sav_02d.t1
push edx
call fcn.0042baf3
lea eax, [esp + 0x40]
push 0x441fac
push eax
call fcn.0042aa6f
mov esi, eax
add esp, 0x20
cmp esi, ebx
je 0x41790e
mov eax, 0x22b
cmp dword [esp + 0x70], ebp
jne 0x4176d5
mov eax, 0x226
add eax, dword [0x451ef4]
push esi
push ebp
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
call fcn.0042c0d4
lea ebp, [edi + 0x208]
add esp, 0x10
mov ecx, ebp
call fcn.004293c0
push esi
push 1
lea edx, [esp + 0x1c]
push 4
push edx
mov dword [esp + 0x24], eax
call fcn.0042c0d4
mov eax, dword [0x452250]
push esi
push 1
lea ecx, [esp + 0x2c]
push 4
push ecx
mov dword [esp + 0x34], eax
call fcn.0042c0d4
mov edx, dword [0x44d04c]
push esi
push 1
lea eax, [esp + 0x38]
push 4
push eax
mov dword [esp + 0x40], edx
call fcn.0042c0d4
mov ecx, dword [edi + 0x10]
push esi
push 1
lea edx, [esp + 0x48]
push 4
push edx
mov dword [esp + 0x50], ecx
call fcn.0042c0d4
add esp, 0x40
mov ecx, ebp
call fcn.004293d0
push esi
push 1
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push 4
push eax
call fcn.0042c0d4
push esi
push 1
push 0x14
push 0x450688
call fcn.0042c0d4
push esi
push 1
push 0x14
push 0x44fae0
call fcn.0042c0d4
mov ecx, dword [0x44ed48]
mov eax, 0x51eb851f
mul dword [ecx + 0x364]
shr edx, 5
imul edx, edx, 0x64
add edx, dword [ecx + 0x36c]
push esi
imul edx, edx, 0x64
add edx, dword [ecx + 0x368]
push 1
lea ecx, [esp + 0x4c]
push 4
push ecx
mov dword [esp + 0x54], edx
call fcn.0042c0d4
mov edx, dword [0x44ed48]
mov eax, dword [edx + 0x538]
add esp, 0x40
push esi
push 1
lea ecx, [esp + 0x18]
push 4
push ecx
mov dword [esp + 0x20], eax
call fcn.0042c0d4
mov edx, dword [0x44d050]
push esi
push 1
lea eax, [esp + 0x2c]
push 4
push eax
mov dword [esp + 0x34], edx
call fcn.0042c0d4
mov ecx, dword [0x452280]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
push esi
shr ecx, 0x1f
add ecx, edx
push 1
lea edx, [esp + 0x4c]
push 4
push edx
mov dword [esp + 0x54], ecx
call fcn.0042c0d4
push esi
push 1
push 4
push 0x452274
call fcn.0042c0d4
add esp, 0x40
push esi
push 1
lea eax, [esp + 0x28]
push 4
push eax
mov dword [esp + 0x30], ebx
call fcn.0042c0d4
mov ecx, dword [0x44ed48]
add esp, 0x10
push esi
mov dword [esp + 0x18], ebx
mov eax, dword [ecx + 0x384]
cmp eax, ebx
push 1
push 4
jl 0x41787d
inc eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
push edx
jmp 0x417882
lea eax, [esp + 0x20]
push eax
call fcn.0042c0d4
mov eax, dword [0x44ed48]
add esp, 0x10
push esi
mov dword [esp + 0x14], ebx
push 1
push 4
cmp byte [eax + 0x5bc], bl
je 0x4178e4
mov dword [esp + 0x1c], 1
mov ecx, dword [eax + 0x5dc]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx + 1]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 0x5c0]
imul edx, edx, 0x3e8
add ecx, edx
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x5c4]
imul eax, eax, 0x186a0
add ecx, eax
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
jmp 0x4178e9
lea edx, [esp + 0x1c]
push edx
call fcn.0042c0d4
add esp, 0x10
push esi
push 1
lea eax, [esp + 0x23]
push 1
push eax
mov byte [esp + 0x2b], 0x59
call fcn.0042c0d4
push esi
call fcn.0042a672
add esp, 0x14
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00429e93
add esp, 0x5c
ret 4