Function at 0x4030b0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x52152b
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x56e19c]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push ebp
push esi
mov eax, dword [0x56e19c]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
xor ebp, ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], ebp
call fcn.00404530
mov dword [esp + 0x270], ebp
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x20]
push 0x550410
push eax
push 0x550414
push str.C:Threekingdoms_V2_
lea ecx, [esp + 0x1f4]
push str._sCode_s_02d_s
push ecx
mov dword [esp + 0x30], ebp
call fcn.004f80cc
lea edx, [esp + 0x1fc]
push 0x550310
push edx
call fcn.004f7a9f
mov esi, eax
add esp, 0x20
cmp esi, ebp
je 0x403356
mov eax, dword [edi + 0xa0]
imul eax, eax, 0x3e8
push esi
push 1
lea ecx, [esp + 0x2c]
add eax, 0x36b
push 4
push ecx
mov dword [esp + 0x34], eax
call fcn.004f7c18
push esi
push 1
lea edx, [edi + 0x94]
push 4
push edx
mov dword [esp + 0x30], ebp
call fcn.004f7c18
push esi
push 1
lea eax, [esp + 0x38]
push 4
push eax
call fcn.004f7c18
mov eax, 0xd1b71759
mul dword [edi + 0xac]
add esp, 0x30
lea ecx, [esp + 0x18]
push ecx
shr edx, 0xd
push edx
push 0x5367dd2
lea ecx, [esp + 0x34]
call fcn.00404770
push esi
push 1
lea edx, [esp + 0x24]
push 4
push edx
mov dword [esp + 0x2c], eax
call fcn.004f7c18
push esi
push 1
lea eax, [esp + 0x34]
push 4
push eax
mov dword [esp + 0x3c], ebp
call fcn.004f7c18
add esp, 0x20
mov dword [esp + 0x10], ebp
mov ebx, 5
lea esp, [esp]
push esi
push 1
lea ecx, [esp + 0x18]
push 4
push ecx
call fcn.004f7c18
push esi
push 1
lea edx, [esp + 0x28]
push 4
push edx
call fcn.004f7c18
add esp, 0x20
sub ebx, 1
jne 0x4031f0
push esi
push 1
lea eax, [esp + 0x18]
push 4
push eax
mov dword [esp + 0x20], ebp
call fcn.004f7c18
push esi
push 1
lea ecx, [esp + 0x28]
push 4
push ecx
mov dword [esp + 0x30], ebp
call fcn.004f7c18
mov eax, dword [edi + 0xac]
add esp, 0x20
lea edx, [esp + 0x18]
push edx
xor edx, edx
mov ecx, 0x2710
div ecx
lea ecx, [esp + 0x2c]
push edx
push 0x5367dd2
call fcn.00404770
push esi
push 1
lea edx, [esp + 0x18]
push 4
push edx
mov dword [esp + 0x20], eax
call fcn.004f7c18
push esi
push 1
lea eax, [esp + 0x28]
push 4
push eax
mov dword [esp + 0x30], ebp
call fcn.004f7c18
push esi
push 1
lea ecx, [esp + 0x38]
push 4
push ecx
call fcn.004f7c18
push esi
push 1
lea edx, [esp + 0x48]
push 4
push edx
call fcn.004f7c18
add esp, 0x40
push esi
push 1
lea eax, [esp + 0x18]
push 4
push eax
call fcn.004f7c18
push esi
push 1
lea ecx, [esp + 0x28]
push 4
push ecx
call fcn.004f7c18
push esi
push 1
lea edx, [esp + 0x38]
push 4
push edx
call fcn.004f7c18
push esi
push 1
lea eax, [esp + 0x48]
push 4
push eax
call fcn.004f7c18
add esp, 0x40
push esi
push 1
push 4
lea ecx, [esp + 0x1c]
push ecx
call fcn.004f7c18
push esi
push 1
lea edx, [esp + 0x28]
push 4
push edx
call fcn.004f7c18
push esi
push 1
lea eax, [esp + 0x38]
push 4
push eax
call fcn.004f7c18
push esi
push 1
lea ecx, [esp + 0x48]
push 4
push ecx
call fcn.004f7c18
add esp, 0x40
push esi
push 1
lea edx, [esp + 0x1f]
push 1
push edx
mov byte [esp + 0x27], 0x59
call fcn.004f7c18
push esi
call fcn.004f7d11
mov eax, dword [esp + 0x34]
inc eax
add esp, 0x14
cmp eax, 0x64
mov dword [esp + 0x20], eax
jl 0x403104
lea ecx, [esp + 0x28]
mov dword [esp + 0x270], 0xffffffff
call fcn.00404a10
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.004f6f4f
add esp, 0x264
ret