Function at 0x436070
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x70
mov eax, dword [0x45d1ac]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [0x460030]
mov ebp, 1
add dword [edi + 0x188c], ebp
mov eax, dword [edi + 0x188c]
xor ebx, ebx
cmp eax, 0x64
jl 0x4360a6
mov dword [edi + 0x188c], ebx
push 0x3f
lea eax, [esp + 0x3d]
push ebx
push eax
mov byte [esp + 0x44], bl
call fcn.0043c620
mov ecx, dword [edi + 0x188c]
push ecx
lea edx, [esp + 0x48]
push str.codeSSC_02d.M
push edx
call fcn.0043b6e4
lea eax, [esp + 0x50]
push 0x45aa50
push eax
call fcn.0043a928
mov esi, eax
add esp, 0x20
cmp esi, ebx
je 0x4363d5
mov eax, 0x22b
cmp dword [esp + 0x84], ebp
jne 0x4360fc
mov eax, 0x226
add eax, dword [0x46276c]
push esi
push ebp
lea ecx, [esp + 0x3c]
push 4
push ecx
mov dword [esp + 0x44], eax
call fcn.0043ad5e
lea ebp, [edi + 0x208]
add esp, 0x10
mov ecx, ebp
call fcn.00439bd0
push esi
push 1
lea edx, [esp + 0x1c]
push 4
push edx
mov dword [esp + 0x24], eax
call fcn.0043ad5e
mov eax, dword [0x462ab0]
push esi
push 1
lea ecx, [esp + 0x2c]
push 4
push ecx
mov dword [esp + 0x34], eax
call fcn.0043ad5e
mov edx, dword [0x45e8c8]
push esi
push 1
lea eax, [esp + 0x38]
push 4
push eax
mov dword [esp + 0x40], edx
call fcn.0043ad5e
mov ecx, dword [edi + 0x10]
push esi
push 1
lea edx, [esp + 0x48]
push 4
push edx
mov dword [esp + 0x50], ecx
call fcn.0043ad5e
add esp, 0x40
mov ecx, ebp
call fcn.00439be0
push esi
push 1
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push 4
push eax
call fcn.0043ad5e
mov ecx, dword [0x462754]
push esi
push 1
push 0x14
push 0x460a9c
mov dword [0x460aa0], ecx
call fcn.0043ad5e
push esi
push 1
push 0x14
push 0x4600d4
call fcn.0043ad5e
mov ecx, dword [0x46000c]
mov eax, 0x51eb851f
mul dword [ecx + 0x344]
shr edx, 5
imul edx, edx, 0x64
add edx, dword [ecx + 0x34c]
push esi
imul edx, edx, 0x64
add edx, dword [ecx + 0x348]
push 1
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x4c]
push 4
push edx
call fcn.0043ad5e
add esp, 0x40
mov eax, dword [0x46000c]
mov ecx, dword [eax + 0x38c]
push esi
push 1
lea edx, [esp + 0x18]
push 4
push edx
mov dword [esp + 0x20], ecx
call fcn.0043ad5e
mov eax, dword [0x45e8cc]
push esi
push 1
lea ecx, [esp + 0x2c]
push 4
push ecx
mov dword [esp + 0x34], eax
call fcn.0043ad5e
mov ecx, dword [0x462acc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push esi
mov eax, edx
push 1
shr eax, 0x1f
lea ecx, [esp + 0x58]
add eax, edx
push 4
push ecx
mov dword [esp + 0x60], eax
call fcn.0043ad5e
push esi
push 1
push 4
push 0x462ac0
call fcn.0043ad5e
mov edx, dword [0x46000c]
mov dword [esp + 0x5c], ebx
mov eax, dword [edx + 0x470]
add esp, 0x40
cmp eax, ebx
jle 0x43628b
mov dword [esp + 0x1c], eax
push esi
push 1
lea eax, [esp + 0x24]
push 4
push eax
call fcn.0043ad5e
mov eax, dword [0x46000c]
mov dword [esp + 0x24], ebx
mov edx, dword [eax + 0x370]
mov ecx, dword [eax + 0x36c]
add esp, 0x10
cmp ecx, ebx
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0x374]
push esi
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x378]
push 1
mov dword [esp + 0x34], edx
push 4
jle 0x43631e
mov edx, dword [eax + 0x370]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x374]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0x378]
mov dword [esp + 0x38], edx
mov edx, ecx
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x370]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x374]
mov eax, dword [eax + 0x378]
add edx, ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], edx
push ecx
jmp 0x436323
lea edx, [esp + 0x20]
push edx
call fcn.0043ad5e
mov ecx, dword [0x46000c]
xor eax, eax
add esp, 0x10
mov dword [esp + 0x10], eax
cmp byte [ecx + 0x394], bl
je 0x4363a6
cmp byte [ecx + 0x395], bl
je 0x436350
mov eax, 1
mov dword [esp + 0x10], eax
mov edx, dword [ecx + 0x3b4]
cmp edx, ebx
jle 0x436364
lea edx, [edx + edx*4]
lea eax, [eax + edx*2]
mov dword [esp + 0x10], eax
mov edx, dword [ecx + 0x39c]
imul edx, edx, 0x3e8
add eax, edx
mov dword [esp + 0x10], eax
mov edx, dword [ecx + 0x398]
imul edx, edx, 0x186a0
add eax, edx
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 0x3a0]
imul ecx, ecx, 0x989680
push esi
push 1
add eax, ecx
push 4
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
push edx
jmp 0x4363b0
push esi
push 1
push 4
lea eax, [esp + 0x1c]
push eax
call fcn.0043ad5e
add esp, 0x10
push esi
push 1
lea ecx, [esp + 0x23]
push 1
push ecx
mov byte [esp + 0x2b], 0x59
call fcn.0043ad5e
push esi
call fcn.0043ae57
add esp, 0x14
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043a652
add esp, 0x70
ret 4