Function at 0x472e50
Capabilities:
Terminate process

Disassembly:
sub esp, 0xd44
mov eax, dword [esp + 0xd4c]
push ebx
push ebp
push esi
mov esi, dword [eax + 0x504]
mov ebp, dword [eax + 0x510]
mov edx, dword [eax + 0x508]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ebx
jle 0x472e99
mov ecx, esi
mov eax, 0xffffff38
lea edi, [esp + 0x144]
rep stosd dword es:[edi], eax
test esi, esi
jle 0x472edb
mov ecx, esi
mov eax, 0xffffff38
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov ecx, esi
xor eax, eax
lea edi, [esp + 0x248]
test esi, esi
rep stosd dword es:[edi], eax
jle 0x472edb
mov ecx, esi
mov eax, 1
lea edi, [esp + 0x34c]
rep stosd dword es:[edi], eax
mov ecx, esi
or eax, 0xffffffff
lea edi, [esp + 0x450]
rep stosd dword es:[edi], eax
test esi, esi
jne 0x472f04
mov ecx, dword [esp + 0xd60]
push ebp
lea eax, [esp + 0x558]
push edx
push eax
push edx
mov edx, dword [esp + 0xd74]
push 0
push ecx
push edx
call fcn.00473330
add esp, 0x1c
jmp 0x472f69
mov eax, dword [esp + 0x18]
xor esi, esi
dec eax
test eax, eax
mov dword [esp + 0x20], eax
jle 0x4732cb
lea edi, [esp + 0x554]
mov eax, dword [esp + 0xd5c]
mov ecx, dword [esp + 0x14]
push ebp
push ecx
mov edx, dword [eax + esi*4 + 4]
mov eax, dword [eax + esi*4]
mov ecx, dword [esp + 0xd68]
push edi
push edx
mov edx, dword [esp + 0xd74]
push eax
push ecx
push edx
call fcn.00473330
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
add ecx, eax
mov eax, dword [esp + 0x20]
inc esi
add edi, 0x20
cmp esi, eax
mov dword [esp + 0x10], ecx
jl 0x472f1e
mov esi, dword [esp + 0x18]
mov eax, ecx
test eax, eax
je 0x4732cb
mov eax, 0xffffff38
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
lea edx, [esi - 1]
push eax
push ecx
lea eax, [esp + 0x55c]
push edx
push eax
call fcn.00473560
mov eax, dword [esp + 0x40]
add esp, 0x10
mov dword [esp + 0x144], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
cmp esi, 2
mov dword [esp + 0x44], eax
mov dword [esp + 0x148], eax
mov dword [esp + 0x10], 2
jle 0x4731cd
mov ecx, dword [esp + 0xd5c]
add ecx, 0x210
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov dword [esp + 0x2c], eax
mov edi, dword [esp + eax*4 + 0x248]
mov esi, dword [esp + eax*4 + 0x34c]
cmp dword [esp + edi*4 + 0x450], esi
je 0x4731ab
mov eax, dword [esp + 0xd5c]
push edi
mov ecx, eax
mov dword [esp + edi*4 + 0x454], esi
mov ebx, dword [eax + edi*4 + 0x208]
mov eax, dword [ebp + edi*4 + 0x344]
mov edx, dword [ecx + esi*4 + 0x208]
mov ecx, dword [ebp + esi*4 + 0x344]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], eax
lea edx, [esp + 0x44]
lea eax, [esp + 0x148]
push edx
push eax
mov dword [esp + 0x20], ecx
call fcn.00473990
lea ecx, [esp + 0x4c]
push esi
lea edx, [esp + 0x154]
push ecx
push edx
mov ebp, eax
call fcn.00473990
add esp, 0x18
cmp ebp, 0xffffffff
je 0x4732a3
cmp eax, 0xffffffff
je 0x4732a3
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0xd60]
push ecx
mov ecx, dword [esp + 0xd68]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x30]
push ebp
push edx
push eax
call fcn.00473750
add esp, 0x1c
test eax, eax
je 0x473193
mov ebp, dword [esp + 0x2c]
mov eax, 0xffffff38
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov eax, ebp
lea ecx, [esp + 0x38]
sub eax, ebx
lea edx, [esp + 0x34]
shl ebx, 5
push ecx
push edx
lea ecx, [esp + ebx + 0x55c]
push eax
push ecx
call fcn.00473560
lea edx, [esp + 0x24]
lea eax, [esp + 0x30]
push edx
mov ecx, ebp
push eax
mov eax, dword [esp + 0x40]
shl ecx, 5
sub eax, ebp
lea edx, [esp + ecx + 0x56c]
push eax
push edx
call fcn.00473560
mov eax, dword [esp + 0x54]
add esp, 0x20
test edi, edi
mov dword [esp + edi*4 + 0x40], eax
jne 0x473118
mov dword [esp + 0x144], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov dword [esp + ecx*4 + 0x144], eax
cmp esi, 1
mov dword [esp + ecx*4 + 0x40], ebx
mov dword [esp + esi*4 + 0x144], edx
jne 0x473143
mov dword [esp + 0x44], edx
test eax, eax
jge 0x47314f
test ebx, ebx
jl 0x4731a7
mov ecx, dword [esp + 0x10]
lea eax, [ebp - 1]
test eax, eax
jl 0x473169
cmp dword [esp + eax*4 + 0x34c], esi
jne 0x473169
mov dword [esp + eax*4 + 0x34c], ecx
dec eax
jns 0x473156
mov ecx, dword [esp + 0x18]
lea eax, [ebp + 1]
cmp eax, ecx
jge 0x4731a7
cmp dword [esp + eax*4 + 0x248], edi
jne 0x4731a7
mov ecx, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x248], ecx
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
jl 0x473174
jmp 0x4731a7
mov eax, dword [esp + 0x10]
mov ecx, 0xffffff38
mov dword [esp + eax*4 + 0x144], ecx
mov dword [esp + eax*4 + 0x40], ecx
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
jl 0x472fdc
mov esi, ecx
mov eax, dword [esp + 0xd58]
lea edx, [esi*4]
push edx
push eax
call fcn.0046f210
lea ecx, [esp + 0x48]
push 0
lea edx, [esp + 0x150]
push ecx
push edx
mov ebx, eax
call fcn.00473990
mov dword [ebx], eax
lea eax, [esp + 0x54]
push 1
lea ecx, [esp + 0x15c]
push eax
push ecx
call fcn.00473990
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x38]
mov esi, 2
add esp, 0x20
cmp eax, esi
jle 0x4732cb
mov eax, dword [esp + 0xd5c]
lea edx, [ebp + 0x34c]
mov dword [esp + 0x1c], edx
lea edi, [eax + 0x30c]
mov eax, dword [edi + 0xfc]
mov ecx, dword [edi]
mov edx, dword [ebp + eax*4 + 0x344]
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + ecx*4 + 0x344]
mov ecx, dword [ebx + ecx*4]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
push eax
push edx
mov edx, dword [esp + 0x3c]
push edx
call fcn.004732e0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x54]
push esi
lea ecx, [esp + 0x15c]
push eax
push ecx
call fcn.00473990
mov ecx, dword [esp + 0x34]
add esp, 0x20
test eax, eax
jl 0x4732aa
cmp ecx, eax
je 0x4732aa
mov dword [ebx + esi*4], eax
jmp 0x4732b0
push 1
call fcn.00484dad
or ch, 0x80
mov dword [ebx + esi*4], ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc esi
add edi, 4
add ecx, 4
cmp esi, eax
mov dword [esp + 0x1c], ecx
jl 0x47323c
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0xd44
ret