Function at 0x40c620
Capabilities:
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub esp, 0x30c
mov eax, dword [0x450c10]
xor eax, esp
mov dword [esp + 0x308], eax
mov eax, dword [esp + 0x310]
push ebx
push ebp
push esi
push edi
push eax
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x29c]
push str.Code_dSystemData.dtt
push ecx
call fcn.0042e7a3
lea edx, [esp + 0x2a4]
push 0x44446c
push edx
call fcn.0042d66f
mov esi, 0x64
add esp, 0x14
mov edi, eax
mov dword [esp + 0x18], esi
call fcn.0042e980
cdq
mov ecx, 0xa
idiv ecx
mov ebx, 1
add edx, ebx
imul edx, edx, 0xf4240
mov dword [esp + 0x14], edx
call fcn.0042e980
cdq
mov ecx, 0xa
idiv ecx
mov ebp, 5
add edx, ebp
imul edx, edx, 0x2710
mov dword [esp + 0x3c], edx
call fcn.0042e980
cdq
mov ecx, 3
idiv ecx
add edx, ebx
imul edx, edx, 0x2710
mov dword [esp + 0x28], edx
call fcn.0042e980
cdq
mov ecx, 3
idiv ecx
add edx, ecx
imul edx, edx, 0x2710
mov dword [esp + 0x48], edx
call fcn.0042e980
cdq
mov ecx, 0xa
idiv ecx
add edx, 0x1e
imul edx, edx, 0x2710
mov dword [esp + 0x44], edx
call fcn.0042e980
cdq
mov ecx, ebp
idiv ecx
add edx, 0xa
imul edx, edx, 0x2710
mov dword [esp + 0x30], edx
call fcn.0042e980
cdq
mov ecx, ebp
idiv ecx
add edx, 0xf
imul edx, edx, 0x2710
mov dword [esp + 0x40], edx
call fcn.0042e980
cdq
mov ecx, 0xa
idiv ecx
add edx, 0x32
imul edx, edx, 0x2710
mov dword [esp + 0x20], edx
call fcn.0042e980
cdq
mov ecx, ebp
idiv ecx
add edx, 0x14
imul edx, edx, 0x2710
mov dword [esp + 0x50], edx
call fcn.0042e980
cdq
mov ecx, ebp
idiv ecx
add edx, 0x19
imul edx, edx, 0x2710
mov dword [esp + 0x38], edx
call fcn.0042e980
cdq
mov ecx, 0xa
idiv ecx
add edx, 0x78
imul edx, edx, 0x2710
mov dword [esp + 0x34], edx
call fcn.0042e980
cdq
mov ecx, 0x15
idiv ecx
add edx, 0x32
imul edx, edx, 0x2710
mov dword [esp + 0x2c], edx
call fcn.0042e980
cdq
mov ecx, 0x1f
idiv ecx
mov ecx, 0x14
mov eax, 0xa
mov dword [esp + 0xa0], esi
mov esi, 2
mov dword [esp + 0x58], 0xc350
mov dword [esp + 0x5c], 0x11170
mov dword [esp + 0x60], 0x186a0
mov dword [esp + 0x64], 0x249f0
mov dword [esp + 0x68], 0x30d40
mov dword [esp + 0x6c], 0x3d090
mov dword [esp + 0x70], 0x493e0
mov dword [esp + 0x74], 0x7a120
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], 0
mov dword [esp + 0xa4], 0x14
mov dword [esp + 0xa8], 0xa
mov dword [esp + 0xac], ebp
mov dword [esp + 0xb0], 3
add edx, 0x46
imul edx, edx, 0x2710
mov dword [esp + 0x24], edx
mov edx, 3
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x12c], 0x78
mov dword [esp + 0x130], ecx
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], ebp
mov dword [esp + 0x13c], edx
mov dword [esp + 0x140], esi
mov dword [esp + 0x144], ebx
mov dword [esp + 0xd8], 0x82
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe8], edx
mov dword [esp + 0xec], esi
mov dword [esp + 0xf0], ebx
mov dword [esp + 0x110], 0x8c
mov dword [esp + 0x114], ecx
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], ebp
mov dword [esp + 0x120], edx
mov dword [esp + 0x124], esi
mov dword [esp + 0x128], ebx
mov dword [esp + 0xf4], 0x96
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xfc], eax
mov dword [esp + 0x16c], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0x150], eax
xor eax, eax
mov dword [esp + 0x100], ebp
mov dword [esp + 0x104], edx
mov dword [esp + 0x108], esi
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x164], 0xa0
mov dword [esp + 0x168], ecx
mov dword [esp + 0x170], ebp
mov dword [esp + 0x174], edx
mov dword [esp + 0x178], esi
mov dword [esp + 0x17c], ebx
mov dword [esp + 0xbc], 0xb4
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], ebx
mov dword [esp + 0x148], 0xc8
mov dword [esp + 0x14c], ecx
mov dword [esp + 0x154], ebp
mov dword [esp + 0x158], edx
mov dword [esp + 0x15c], esi
mov dword [esp + 0x160], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x20c], 0x3e8
mov dword [esp + 0x210], 0x7d0
mov dword [esp + 0x214], 0xbb8
mov dword [esp + 0x218], 0xfa0
mov dword [esp + 0x21c], 0x1388
mov dword [esp + 0x220], 0x1770
mov dword [esp + 0x224], 0x1b58
mov dword [esp + 0x228], 0x2328
mov dword [esp + 0x22c], 0x2710
mov dword [esp + 0x230], 0x36b0
mov dword [esp + 0x234], 0x3a98
mov dword [esp + 0x238], 0x4e20
mov dword [esp + 0x23c], 0x5208
mov dword [esp + 0x240], 0x61a8
mov dword [esp + 0x244], 0x7530
mov dword [esp + 0x248], 0x88b8
mov dword [esp + 0x24c], 0x9c40
mov dword [esp + 0x250], 0xc350
mov dword [esp + 0x254], 0xea60
mov dword [esp + 0x258], 0x11170
mov dword [esp + 0x25c], 0x15f90
mov dword [esp + 0x260], 0x186a0
mov dword [esp + 0x264], 0x222e0
mov dword [esp + 0x268], 0x249f0
mov dword [esp + 0x26c], 0x30d40
mov dword [esp + 0x270], 0x33450
mov dword [esp + 0x274], 0x3d090
mov dword [esp + 0x278], 0x493e0
mov dword [esp + 0x27c], 0x55730
mov dword [esp + 0x280], 0x61a80
mov dword [esp + 0x284], 0x7a120
mov dword [esp + 0x288], 0x927c0
mov dword [esp + 0x28c], 0xf4240
mov dword [esp + 0x290], ebx
mov dword [esp + 0x294], esi
call fcn.0042e980
cdq
mov ecx, 0x32
idiv ecx
add edx, ecx
mov dword [esp + 0x180], edx
call fcn.0042e980
cdq
mov ecx, 0x32
idiv ecx
add edx, ecx
mov dword [esp + 0x184], edx
call fcn.0042e980
cdq
mov ecx, 0x32
idiv ecx
add edx, ecx
mov dword [esp + 0x188], edx
call fcn.0042e980
cdq
mov ecx, 0x32
idiv ecx
add edx, 0x1e
mov dword [esp + 0x18c], edx
call fcn.0042e980
cdq
mov ecx, 0x1e
idiv ecx
add edx, ecx
mov dword [esp + 0x190], edx
call fcn.0042e980
cdq
mov ecx, 0x1e
idiv ecx
add edx, 0x14
mov dword [esp + 0x194], edx
call fcn.0042e980
cdq
mov ecx, 0x1e
idiv ecx
add edx, 0x14
mov dword [esp + 0x198], edx
call fcn.0042e980
cdq
mov ecx, 0x14
idiv ecx
add edx, 0xa
mov dword [esp + 0x19c], edx
call fcn.0042e980
cdq
mov ecx, 0x14
idiv ecx
add edx, 0xa
mov dword [esp + 0x1a0], edx
call fcn.0042e980
cdq
mov ecx, 0xa
idiv ecx
add edx, 7
mov dword [esp + 0x1a4], edx
call fcn.0042e980
cdq
mov ecx, 0xa
idiv ecx
add edx, 7
mov dword [esp + 0x1a8], edx
call fcn.0042e980
cdq
mov ecx, 0xa
idiv ecx
add edx, 7
mov dword [esp + 0x1ac], edx
call fcn.0042e980
cdq
mov ecx, 0xa
idiv ecx
add edx, 7
mov dword [esp + 0x1b0], edx
call fcn.0042e980
cdq
mov ecx, 0xa
idiv ecx
add edx, 7
mov dword [esp + 0x1b4], edx
call fcn.0042e980
cdq
mov ecx, ebp
idiv ecx
add edx, ebp
mov dword [esp + 0x1b8], edx
call fcn.0042e980
cdq
mov ecx, ebp
idiv ecx
add edx, ebp
mov dword [esp + 0x1bc], edx
call fcn.0042e980
cdq
mov ecx, ebp
idiv ecx
add edx, ebp
mov dword [esp + 0x1c0], edx
call fcn.0042e980
cdq
mov ecx, ebp
idiv ecx
add edx, 3
mov dword [esp + 0x1c4], edx
call fcn.0042e980
cdq
mov ecx, ebp
idiv ecx
add edx, 3
mov dword [esp + 0x1c8], edx
call fcn.0042e980
cdq
idiv ebp
add edx, 3
mov dword [esp + 0x1cc], edx
call fcn.0042e980
cdq
mov ecx, 3
idiv ecx
add edx, esi
mov dword [esp + 0x1d0], edx
call fcn.0042e980
cdq
mov ecx, 3
idiv ecx
add edx, esi
mov dword [esp + 0x1d4], edx
call fcn.0042e980
cdq
mov ecx, 3
idiv ecx
add edx, ebx
mov dword [esp + 0x1d8], edx
call fcn.0042e980
cdq
mov ecx, 3
idiv ecx
add edx, ebx
mov dword [esp + 0x1dc], edx
call fcn.0042e980
cdq
mov ecx, 3
idiv ecx
mov dword [esp + 0x1e0], edx
call fcn.0042e980
cdq
mov ecx, 3
idiv ecx
mov dword [esp + 0x1e4], edx
call fcn.0042e980
cdq
mov ecx, 3
idiv ecx
mov dword [esp + 0x1e8], edx
call fcn.0042e980
and eax, 0x80000001
jns 0x40cdd5
dec eax
or eax, 0xfffffffe
inc eax
mov dword [esp + 0x1ec], eax
call fcn.0042e980
and eax, 0x80000001
jns 0x40cded
dec eax
or eax, 0xfffffffe
inc eax
xor ebp, ebp
mov dword [esp + 0x1f0], eax
mov dword [esp + 0x1f4], ebp
mov dword [esp + 0x1f8], ebp
mov dword [esp + 0x1fc], ebp
call fcn.0042e980
cdq
mov ecx, 0x64
idiv ecx
cmp edx, 0xa
jge 0x40ce24
mov dword [esp + 0x1f4], ebx
call fcn.0042e980
cdq
mov ecx, 0x64
idiv ecx
cmp edx, 6
jge 0x40ce3d
mov dword [esp + 0x1f8], ebx
call fcn.0042e980
cdq
mov ecx, 0x64
idiv ecx
cmp edx, 3
jge 0x40ce56
mov dword [esp + 0x1fc], ebx
mov dword [esp + 0x200], ebp
call fcn.0042e980
cdq
mov ecx, 0x64
idiv ecx
mov dword [esp + 0x204], edx
call fcn.0042e980
cdq
mov ecx, 0x3b
idiv ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x208], edx
cmp edi, ebp
jne 0x40d3c9
lea edx, [esp + 0x298]
push 0x444a28
push edx
call fcn.0042d66f
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x40d3c9
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push ecx
add edi, 0x70
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea edx, [esp + 0x20]
push 4
push edx
mov dword [esp + 0x28], eax
call fcn.0042ef9d
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea edx, [esp + 0x1c]
push 4
push edx
mov dword [esp + 0x24], eax
call fcn.0042ef9d
add esp, 0x10
lea ecx, [ecx]
mov ecx, dword [esp + ebp + 0x20c]
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea ecx, [esp + ebp + 0x214]
push 4
push ecx
mov dword [ecx], eax
call fcn.0042ef9d
mov eax, dword [esp + ebp + 0x190]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push eax
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea ecx, [esp + ebp + 0x188]
push 4
push ecx
mov dword [ecx], eax
call fcn.0042ef9d
add ebp, 4
add esp, 0x10
cmp ebp, 0x8c
jl 0x40cf10
xor ebp, ebp
jmp 0x40cf80
mov edx, dword [esp + ebp + 0x78]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea ecx, [esp + ebp + 0x80]
push 4
push ecx
mov dword [ecx], eax
call fcn.0042ef9d
mov ecx, dword [esp + ebp + 0x68]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea ecx, [esp + ebp + 0x60]
push 4
push ecx
mov dword [ecx], eax
call fcn.0042ef9d
add ebp, 4
add esp, 0x10
cmp ebp, 0x20
jl 0x40cf80
xor ebp, ebp
nop
mov eax, dword [esp + ebp + 0xa0]
lea edx, [esp + 0x10]
push edx
push eax
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea ecx, [esp + ebp + 0xa8]
push 4
push ecx
mov dword [ecx], eax
call fcn.0042ef9d
mov edx, dword [esp + ebp + 0x13c]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea ecx, [esp + ebp + 0x134]
push 4
push ecx
mov dword [ecx], eax
call fcn.0042ef9d
mov ecx, dword [esp + ebp + 0xe8]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea ecx, [esp + ebp + 0xe0]
push 4
push ecx
mov dword [ecx], eax
call fcn.0042ef9d
mov eax, dword [esp + ebp + 0x120]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push eax
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea ecx, [esp + ebp + 0x118]
push 4
push ecx
mov dword [ecx], eax
call fcn.0042ef9d
mov edx, dword [esp + ebp + 0x104]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea ecx, [esp + ebp + 0xfc]
push 4
push ecx
mov dword [ecx], eax
call fcn.0042ef9d
mov ecx, dword [esp + ebp + 0x174]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea ecx, [esp + ebp + 0x16c]
push 4
push ecx
mov dword [ecx], eax
call fcn.0042ef9d
mov eax, dword [esp + ebp + 0xcc]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push eax
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea ecx, [esp + ebp + 0xc4]
push 4
push ecx
mov dword [ecx], eax
call fcn.0042ef9d
mov edx, dword [esp + ebp + 0x158]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea ecx, [esp + ebp + 0x150]
push 4
push ecx
mov dword [ecx], eax
call fcn.0042ef9d
add ebp, 4
add esp, 0x10
cmp ebp, 0x1c
jl 0x40cfe0
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea edx, [esp + 0x54]
push 4
push edx
mov dword [esp + 0x5c], eax
call fcn.0042ef9d
mov ecx, dword [esp + 0x64]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea edx, [esp + 0x5c]
push 4
push edx
mov dword [esp + 0x64], eax
call fcn.0042ef9d
mov ecx, dword [esp + 0x4c]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea edx, [esp + 0x44]
push 4
push edx
mov dword [esp + 0x4c], eax
call fcn.0042ef9d
mov ecx, dword [esp + 0x38]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea edx, [esp + 0x30]
push 4
push edx
mov dword [esp + 0x38], eax
call fcn.0042ef9d
mov ecx, dword [esp + 0x58]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea edx, [esp + 0x50]
push 4
push edx
mov dword [esp + 0x58], eax
call fcn.0042ef9d
mov ecx, dword [esp + 0x54]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea edx, [esp + 0x4c]
push 4
push edx
mov dword [esp + 0x54], eax
call fcn.0042ef9d
mov ecx, dword [esp + 0x40]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea edx, [esp + 0x38]
push 4
push edx
mov dword [esp + 0x40], eax
call fcn.0042ef9d
mov ecx, dword [esp + 0x50]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea edx, [esp + 0x48]
push 4
push edx
mov dword [esp + 0x50], eax
call fcn.0042ef9d
mov ecx, dword [esp + 0x30]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea edx, [esp + 0x28]
push 4
push edx
mov dword [esp + 0x30], eax
call fcn.0042ef9d
mov ecx, dword [esp + 0x60]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea edx, [esp + 0x58]
push 4
push edx
mov dword [esp + 0x60], eax
call fcn.0042ef9d
mov ecx, dword [esp + 0x48]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
mov dword [esp + 0x40], eax
push 4
lea edx, [esp + 0x44]
push edx
call fcn.0042ef9d
mov ecx, dword [esp + 0x44]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea edx, [esp + 0x3c]
push 4
push edx
mov dword [esp + 0x44], eax
call fcn.0042ef9d
mov ecx, dword [esp + 0x3c]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea edx, [esp + 0x34]
push 4
push edx
mov dword [esp + 0x3c], eax
call fcn.0042ef9d
mov ecx, dword [esp + 0x34]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, edi
call fcn.0042c1f0
push esi
push ebx
lea edx, [esp + 0x2c]
push 4
push edx
mov dword [esp + 0x34], eax
call fcn.0042ef9d
push esi
call fcn.0042d272
add esp, 0x14
jmp 0x40de12
push edi
push ebx
lea eax, [esp + 0x20]
push 4
push eax
mov dword [esp + 0x20], ebp
call fcn.0042d58e
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
add esi, 0x70
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
mov dword [esp + 0x14], eax
lea ebx, [ebx]
push edi
push ebx
lea eax, [esp + ebp + 0x214]
push 4
push eax
call fcn.0042d58e
mov ecx, dword [esp + ebp + 0x21c]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + ebp + 0x214], eax
lea eax, [esp + ebp + 0x188]
push 4
push eax
call fcn.0042d58e
mov eax, dword [esp + ebp + 0x190]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push eax
push 0x45a209
mov ecx, esi
call fcn.0042c000
mov dword [esp + ebp + 0x180], eax
add ebp, 4
cmp ebp, 0x8c
jl 0x40d430
xor ebp, ebp
push edi
push ebx
lea eax, [esp + ebp + 0x80]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + ebp + 0x88]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + ebp + 0x80], eax
lea eax, [esp + ebp + 0x60]
push 4
push eax
call fcn.0042d58e
mov ecx, dword [esp + ebp + 0x68]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, esi
call fcn.0042c000
mov dword [esp + ebp + 0x58], eax
add ebp, 4
cmp ebp, 0x20
jl 0x40d4a5
xor ebp, ebp
mov edi, edi
push edi
push ebx
lea eax, [esp + ebp + 0xa8]
push 4
push eax
call fcn.0042d58e
mov eax, dword [esp + ebp + 0xb0]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push eax
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + ebp + 0xa8], eax
lea eax, [esp + ebp + 0x134]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + ebp + 0x13c]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + ebp + 0x134], eax
lea eax, [esp + ebp + 0xe0]
push 4
push eax
call fcn.0042d58e
mov ecx, dword [esp + ebp + 0xe8]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + ebp + 0xe0], eax
lea eax, [esp + ebp + 0x118]
push 4
push eax
call fcn.0042d58e
mov eax, dword [esp + ebp + 0x120]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push eax
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + ebp + 0x118], eax
lea eax, [esp + ebp + 0xfc]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + ebp + 0x104]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + ebp + 0xfc], eax
lea eax, [esp + ebp + 0x16c]
push 4
push eax
call fcn.0042d58e
mov ecx, dword [esp + ebp + 0x174]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + ebp + 0x16c], eax
lea eax, [esp + ebp + 0xc4]
push 4
push eax
call fcn.0042d58e
mov eax, dword [esp + ebp + 0xcc]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push eax
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + ebp + 0xc4], eax
lea eax, [esp + ebp + 0x150]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + ebp + 0x158]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
mov dword [esp + ebp + 0x148], eax
add ebp, 4
cmp ebp, 0x1c
jl 0x40d510
push edi
push ebx
lea eax, [esp + 0x54]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + 0x5c]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + 0x54], eax
lea eax, [esp + 0x5c]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + 0x64]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x44]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + 0x4c]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x30]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + 0x38]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x50]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + 0x58]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + 0x50], eax
lea eax, [esp + 0x4c]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + 0x54]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x38]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + 0x40]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x48]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + 0x50]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + 0x48], eax
lea eax, [esp + 0x28]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + 0x30]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x58]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + 0x60]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + 0x58], eax
lea eax, [esp + 0x40]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + 0x48]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + 0x40], eax
lea eax, [esp + 0x3c]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + 0x44]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + 0x3c]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
push edi
push ebx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
push 4
push eax
call fcn.0042d58e
mov edx, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x45a209
mov ecx, esi
call fcn.0042c000
mov dword [esp + 0x24], eax
mov byte [esp + 0x98], 0
mov byte [esp + 0x9c], 0
cmp dword [esp + 0x4c], ebx
jne 0x40d933
mov byte [esp + 0x9c], bl
cmp dword [esp + 0x54], ebx
jne 0x40d940
mov byte [esp + 0x98], bl
push edi
call fcn.0042d272
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xa4]
mov edi, dword [esp + 0x20]
add esp, 4
push ecx
mov ecx, dword [esp + 0xb4]
push edx
mov edx, dword [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0xb4]
push edx
mov edx, dword [esp + 0xb4]
push ecx
push edx
push eax
push ebx
mov ecx, esi
mov dword [edi + 0x14d0], eax
call fcn.0042afa0
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 0x140]
mov edx, dword [esp + 0x13c]
push eax
mov eax, dword [esp + 0x13c]
push ecx
mov ecx, dword [esp + 0x13c]
push edx
mov edx, dword [esp + 0x13c]
push eax
mov eax, dword [esp + 0x13c]
push ecx
push edx
push eax
push 2
mov ecx, esi
call fcn.0042afa0
mov ecx, dword [esp + 0xf0]
mov edx, dword [esp + 0xec]
mov eax, dword [esp + 0xe8]
push ecx
mov ecx, dword [esp + 0xe8]
push edx
mov edx, dword [esp + 0xe8]
push eax
mov eax, dword [esp + 0xe8]
push ecx
mov ecx, dword [esp + 0xe8]
push edx
push eax
push ecx
push 3
mov ecx, esi
call fcn.0042afa0
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x120]
push edx
mov edx, dword [esp + 0x120]
push eax
mov eax, dword [esp + 0x120]
push ecx
mov ecx, dword [esp + 0x120]
push edx
mov edx, dword [esp + 0x120]
push eax
push ecx
push edx
push 4
mov ecx, esi
call fcn.0042afa0
mov eax, dword [esp + 0x10c]
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x104]
push eax
mov eax, dword [esp + 0x104]
push ecx
push edx
push eax
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x108]
mov eax, dword [esp + 0x104]
push ecx
push edx
push eax
push 5
mov ecx, esi
call fcn.0042afa0
mov ecx, dword [esp + 0x17c]
mov edx, dword [esp + 0x178]
mov eax, dword [esp + 0x174]
push ecx
mov ecx, dword [esp + 0x174]
push edx
mov edx, dword [esp + 0x174]
push eax
mov eax, dword [esp + 0x174]
push ecx
mov ecx, dword [esp + 0x174]
push edx
push eax
push ecx
push 6
mov ecx, esi
call fcn.0042afa0
mov edx, dword [esp + 0xd4]
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xcc]
push edx
mov edx, dword [esp + 0xcc]
push eax
mov eax, dword [esp + 0xcc]
push ecx
mov ecx, dword [esp + 0xcc]
push edx
mov edx, dword [esp + 0xcc]
push eax
push ecx
push edx
push 7
mov ecx, esi
call fcn.0042afa0
mov eax, dword [esp + 0x160]
mov ecx, dword [esp + 0x15c]
mov edx, dword [esp + 0x158]
push eax
mov eax, dword [esp + 0x158]
push ecx
mov ecx, dword [esp + 0x158]
push edx
mov edx, dword [esp + 0x158]
push eax
mov eax, dword [esp + 0x158]
push ecx
push edx
push eax
push 8
mov ecx, esi
call fcn.0042afa0
mov ecx, dword [0x452308]
mov edx, dword [esp + 0xb0]
push 0x7a120
push 0x493e0
push 0x3d090
push 0x30d40
mov dword [ecx + 0x334], edx
push 0x249f0
push 0x186a0
push 0x11170
push 0xc350
mov ecx, esi
mov dword [esp + 0x78], 0xc350
mov dword [esp + 0x7c], 0x11170
mov dword [esp + 0x80], 0x186a0
mov dword [esp + 0x84], 0x249f0
mov dword [esp + 0x88], 0x30d40
mov dword [esp + 0x8c], 0x3d090
mov dword [esp + 0x90], 0x493e0
mov dword [esp + 0x94], 0x7a120
call fcn.0042b000
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x8c]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0042b040
mov ecx, esi
call fcn.0042b110
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
push edx
push eax
mov ecx, esi
call fcn.0042b180
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x44]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0042b1b0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0042b1e0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0042b210
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
push ecx
push edx
mov ecx, esi
call fcn.0042aea0
xor ebp, ebp
mov dword [esp + 0x1c], ebp
lea esp, [esp]
mov eax, dword [esp + ebp*4 + 0x180]
mov ecx, dword [esp + ebp*4 + 0x20c]
push eax
push ecx
mov ecx, esi
call fcn.0042b140
cmp ebp, 0x22
je 0x40dce4
cmp ebp, 0x21
je 0x40dce4
mov edx, dword [esp + ebp*4 + 0x20c]
imul edx, dword [esp + ebp*4 + 0x180]
add dword [esp + 0x1c], edx
add ebp, ebx
cmp ebp, 0x23
jl 0x40dcb0
mov eax, dword [esp + 0x208]
test eax, eax
jbe 0x40dd0b
cmp eax, 0x64
mov dword [edi + 0x142c], eax
jle 0x40dd0b
mov dword [edi + 0x142c], 0
mov eax, dword [edi + 0x13f0]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0042c650
mov ecx, dword [edi + 0x13fc]
mov edx, dword [edi + 0x13f8]
mov eax, dword [edi + 0x13f4]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0042bfe0
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov ebp, dword [esp + 0x74]
mov dword [edi + 0x1410], esi
mov esi, dword [esp + 0x68]
mov dword [edi + 0x1414], esi
mov esi, dword [esp + 0x6c]
mov dword [edi + 0x1418], esi
mov esi, dword [esp + 0x70]
mov dword [edi + 0x141c], esi
mov dword [edi + 0x140c], edx
mov dword [edi + 0x1408], ecx
mov dword [edi + 0x1420], ebp
mov dword [edi + 0x1404], eax
mov edi, dword [esp + 0x94]
imul edi, ebp
mov ebp, dword [esp + 0x90]
imul ebp, esi
mov esi, dword [esp + 0x8c]
imul esi, dword [esp + 0x6c]
add edi, ebp
add edi, esi
mov esi, dword [esp + 0x88]
imul esi, dword [esp + 0x68]
add edi, esi
mov esi, dword [esp + 0x84]
imul esi, dword [esp + 0x64]
add edi, esi
mov esi, dword [esp + 0x80]
imul esi, edx
mov edx, dword [esp + 0x7c]
imul edx, ecx
mov ecx, dword [esp + 0x78]
add edx, dword [esp + 0x1c]
imul ecx, eax
add edi, esi
add edx, edi
add ecx, edx
mov edx, dword [esp + 0x14]
lea eax, [edx*4]
cmp ecx, eax
jb 0x40de12
mov ecx, dword [0x452308]
mov word [ecx + 0x32e], bx
mov ecx, dword [esp + 0x318]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042ca93
add esp, 0x30c
ret 4