Function at 0x47f330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x55676e
mov eax, dword fs:[0]
push eax
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c1d10]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov edi, dword [esp + 0x14c]
mov esi, ecx
xor eax, eax
mov dword [esp + 0x140], eax
push eax
push eax
push eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x114]
push eax
mov eax, dword [esp + 0x158]
call fcn.00477c60
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
push 0
push esi
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00475200
mov word [esp + 0x70], ax
push 1
push esi
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00475200
mov ecx, dword [esp + 0x74]
mov word [esp + 0x7a], ax
mov edx, dword [esp + 0x78]
mov dword [edi], ebx
mov dword [edi + 4], ebp
mov dword [edi + 8], ecx
movzx ecx, dx
movzx eax, ax
add eax, ecx
mov dword [edi + 0xc], edx
add esp, 0x20
test ecx, ecx
lea edx, [eax*8 + 0x10]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0
jle 0x47fead
mov ecx, dword [esi + 4]
test ecx, ecx
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x44], eax
je 0x47f423
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp edi, eax
jb 0x47f428
call fcn.00402590
mov ebx, dword [esi + 4]
mov eax, edi
shl eax, 4
add ebx, eax
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x47f447
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 4
jne 0x47f44c
call fcn.00402590
mov ebx, dword [ebx + 4]
mov eax, dword [ebx + 4]
test eax, eax
je 0x47f470
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x47f475
call fcn.00402590
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x148]
push 0
push ecx
lea edx, [esp + 0x100]
push 1
push edx
call fcn.00477c60
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x78], ecx
xor ecx, ecx
mov dword [esp + 0x7c], edx
push 0
push esi
mov edx, edi
lea eax, [ecx + 1]
call fcn.00475200
xor ecx, ecx
mov word [esp + 0x84], ax
push 1
push esi
mov edx, edi
lea eax, [ecx + 1]
call fcn.00475200
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x88]
add ecx, edi
mov dword [ecx], ebx
mov word [esp + 0x8e], ax
mov dword [ecx + 4], ebp
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x8c]
mov dword [ecx + 0xc], edx
movzx edx, dx
movzx eax, ax
add eax, edx
mov dword [esp + 0x5c], eax
add esp, 0x20
test edx, edx
lea eax, [edi + eax*8 + 0x10]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
jle 0x47f983
add ecx, 0x10
mov dword [esp + 0x20], 0
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x47f552
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x47f557
call fcn.00402590
mov edi, dword [esi + 4]
mov ebp, dword [esp + 0x24]
mov ecx, dword [edi + ebp + 4]
add edi, ebp
test ecx, ecx
je 0x47f576
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x47f57b
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x20]
mov eax, dword [edi + 4]
test eax, eax
je 0x47f5a3
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x47f5a8
call fcn.00402590
mov ecx, dword [esi + 4]
test ecx, ecx
mov ebx, dword [edi + 4]
je 0x47f5c0
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x47f5c5
call fcn.00402590
mov edi, dword [esi + 4]
mov eax, dword [edi + ebp + 4]
add edi, ebp
test eax, eax
je 0x47f5dc
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 4
jne 0x47f5e1
call fcn.00402590
mov edi, dword [edi + 4]
mov eax, dword [edi + 4]
test eax, eax
je 0x47f605
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x47f60a
call fcn.00402590
mov eax, dword [edi + 4]
mov ecx, dword [ebx]
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0xf0]
push 2
push eax
mov eax, dword [esp + 0x158]
call fcn.00477c60
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov ebp, dword [eax + 4]
mov ebx, dword [eax + 8]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x28]
push 1
push esi
mov eax, 2
mov word [esp + 0x98], 0
call fcn.00475200
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x164]
add ecx, edx
mov word [esp + 0x9a], ax
mov dword [ecx], edi
mov edi, dword [esp + 0x98]
movzx eax, ax
mov dword [ecx + 4], ebp
mov dword [ecx + 8], ebx
add esp, 0x18
lea edx, [edx + eax*8 + 0x10]
xor ebx, ebx
test eax, eax
mov dword [ecx + 0xc], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edx
jle 0x47f83f
mov eax, dword [esp + 0x160]
mov edx, dword [esp + 0x14c]
add edx, eax
add ecx, 0x10
mov dword [esp + 0x48], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ecx
lea ecx, [ecx]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14c]
lea ebp, [eax + ecx]
mov ecx, dword [esi + 4]
add eax, 0x10
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x47f6ea
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x47f6ef
call fcn.00402590
mov edi, dword [esi + 4]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x47f70b
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x47f710
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x20]
mov eax, dword [edi + 4]
test eax, eax
je 0x47f73a
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x47f73f
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
push edx
mov edx, dword [esp + 0x3c]
push eax
add ecx, edx
push ecx
call fcn.004f40b0
mov eax, dword [esp + 0x154]
mov ecx, dword [eax + 0x108]
mov eax, dword [esp + 0x44]
add ecx, eax
add ecx, dword [esp + 0x16c]
add esp, 0xc
mov dword [ebp], ecx
mov edx, dword [edi + 0x14]
mov dword [ebp + 4], edx
mov ecx, dword [edi + 0xc]
mov dword [ebp + 8], ecx
mov edx, dword [edi + 0x18]
mov dword [ebp + 0xc], edx
mov ecx, dword [edi + 0x14]
lea edx, [ecx + eax + 3]
mov eax, dword [esi + 4]
and edx, 0xfffffffc
test eax, eax
mov dword [esp + 0x38], edx
je 0x47f7b3
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 4
cmp dword [esp + 0x14], ecx
jb 0x47f7b8
call fcn.00402590
mov edi, dword [esi + 4]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x47f7d4
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x47f7d9
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x20]
mov eax, dword [edi + 4]
test eax, eax
je 0x47f803
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x47f808
call fcn.00402590
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x30]
movzx edx, word [ecx + eax + 8]
mov eax, dword [esp + 0x2c]
mov dword [eax], edx
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov dword [eax + 4], edx
add ebx, 1
add eax, 8
add ecx, 0x1c
cmp ebx, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
jl 0x47f6c0
mov ecx, dword [esi + 4]
xor ebx, ebx
cmp ecx, ebx
je 0x47f856
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x47f85b
call fcn.00402590
mov edi, dword [esi + 4]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 4]
cmp ecx, ebx
je 0x47f877
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x47f87c
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x20]
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x47f8a4
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x47f8a9
call fcn.00402590
mov edi, dword [edi + 4]
mov ecx, dword [edi]
mov ebp, 7
mov eax, ecx
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], bx
lea edi, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x47f8d0
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x9c]
call fcn.00401fa0
mov byte [esp + 0x140], 1
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x154]
call fcn.00401578
mov edx, dword [eax]
add edx, dword [esp + 0x15c]
mov edi, dword [esp + 0x40]
or edx, 0x80000000
mov dword [edi], edx
mov byte [esp + 0x140], 0
cmp dword [esp + 0xac], 8
jb 0x47f940
mov eax, dword [esp + 0x98]
push eax
call fcn.004b14fa
add esp, 4
mov eax, dword [esp + 0x5c]
add dword [esp + 0x20], 0x10
or eax, 0x80000000
mov dword [edi + 4], eax
mov eax, dword [esp + 0x18]
add eax, 1
add edi, 8
cmp eax, dword [esp + 0x28]
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], bx
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], edi
jl 0x47f535
mov ecx, dword [esp + 0x3c]
cmp dword [esp + 0x18], ecx
jge 0x47fd74
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
mov eax, ecx
shl eax, 4
mov dword [esp + 0x20], eax
lea eax, [edx + ecx*8 + 0x10]
add eax, dword [esp + 0x14c]
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 4]
test ecx, ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
je 0x47f9ce
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x47f9d3
call fcn.00402590
mov edi, dword [esi + 4]
mov ebp, dword [esp + 0x24]
mov ecx, dword [edi + ebp + 4]
add edi, ebp
test ecx, ecx
je 0x47f9f2
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x47f9f7
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x20]
mov eax, dword [edi + 4]
test eax, eax
je 0x47fa1f
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x47fa24
call fcn.00402590
mov ecx, dword [esi + 4]
test ecx, ecx
mov ebx, dword [edi + 4]
je 0x47fa3c
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x47fa41
call fcn.00402590
mov edi, dword [esi + 4]
mov eax, dword [edi + ebp + 4]
add edi, ebp
test eax, eax
je 0x47fa58
mov edx, dword [edi + 8]
sub edx, eax
sar edx, 4
jne 0x47fa5d
call fcn.00402590
mov edi, dword [edi + 4]
mov eax, dword [edi + 4]
test eax, eax
je 0x47fa81
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x47fa86
call fcn.00402590
mov eax, dword [edi + 4]
mov ecx, dword [ebx]
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x130]
push 2
push eax
mov eax, dword [esp + 0x158]
call fcn.00477c60
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov ebp, dword [eax + 4]
mov ebx, dword [eax + 8]
mov edx, dword [esp + 0x24]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x28]
push 1
push esi
mov eax, 2
mov word [esp + 0xa8], 0
call fcn.00475200
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x164]
add ecx, edx
mov word [esp + 0xaa], ax
movzx eax, ax
mov dword [ecx], edi
mov edi, dword [esp + 0xa8]
mov dword [ecx + 4], ebp
add esp, 0x18
test eax, eax
lea edx, [edx + eax*8 + 0x10]
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], 0
jle 0x47fcd3
mov eax, dword [esp + 0x160]
mov edx, dword [esp + 0x14c]
mov ebx, dword [esp + 0x38]
add edx, eax
add ecx, 0x10
mov dword [esp + 0x48], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x40], ecx
jmp 0x47fb50
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14c]
lea ebp, [eax + ecx]
mov ecx, dword [esi + 4]
add eax, 0x10
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x47fb7a
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x47fb7f
call fcn.00402590
mov edi, dword [esi + 4]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x47fb9b
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x47fba0
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x20]
mov eax, dword [edi + 4]
test eax, eax
je 0x47fbcc
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x30], eax
jb 0x47fbd1
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
push edx
push eax
add ecx, ebx
push ecx
call fcn.004f40b0
mov edx, dword [esp + 0x154]
mov eax, dword [edx + 0x108]
add eax, ebx
add eax, dword [esp + 0x16c]
add esp, 0xc
mov dword [ebp], eax
mov ecx, dword [edi + 0x14]
mov dword [ebp + 4], ecx
mov edx, dword [edi + 0xc]
mov dword [ebp + 8], edx
mov eax, dword [edi + 0x18]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi + 0x14]
mov eax, dword [esi + 4]
lea ebx, [ecx + ebx + 3]
and ebx, 0xfffffffc
test eax, eax
je 0x47fc39
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 4
cmp dword [esp + 0x14], ecx
jb 0x47fc3e
call fcn.00402590
mov edi, dword [esi + 4]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x47fc5a
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x47fc5f
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x20]
mov eax, dword [edi + 4]
test eax, eax
je 0x47fc8b
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x30], eax
jb 0x47fc90
call fcn.00402590
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x2c]
movzx edx, word [edx + ecx + 8]
mov eax, dword [esp + 0x40]
mov dword [eax], edx
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
add edx, 1
add eax, 8
add ecx, 0x1c
cmp edx, dword [esp + 0x28]
mov dword [esp + 0x30], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], ecx
jl 0x47fb50
mov dword [esp + 0x38], ebx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x47fce8
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x47fced
call fcn.00402590
mov edi, dword [esi + 4]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x47fd09
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x47fd0e
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x20]
mov eax, dword [edi + 4]
test eax, eax
je 0x47fd36
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x47fd3b
call fcn.00402590
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x5c]
add dword [esp + 0x20], 0x10
or ecx, 0x80000000
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x18]
add ecx, 1
mov dword [eax], edx
add eax, 8
cmp ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], eax
jl 0x47f9b1
mov ecx, dword [esi + 4]
mov ebx, dword [esp + 0x14]
xor ebp, ebp
cmp ecx, ebp
je 0x47fd8d
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp ebx, eax
jb 0x47fd92
call fcn.00402590
mov edi, dword [esi + 4]
add edi, dword [esp + 0x24]
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x47fdaa
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 4
jne 0x47fdaf
call fcn.00402590
mov edi, dword [edi + 4]
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x47fdd3
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x47fdd8
call fcn.00402590
mov edi, dword [edi + 4]
mov ecx, dword [edi + 4]
mov eax, ecx
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], ebp
mov word [esp + 0xb4], bp
lea edi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x47fe00
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0xb8]
call fcn.00401fa0
mov byte [esp + 0x140], 2
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x154]
call fcn.00401578
mov edx, dword [eax]
add edx, dword [esp + 0x15c]
mov edi, dword [esp + 0x14c]
or edx, 0x80000000
mov dword [edi + ebx*8 + 0x10], edx
mov byte [esp + 0x140], 0
cmp dword [esp + 0xc8], 8
jb 0x47fe75
mov eax, dword [esp + 0xb4]
push eax
call fcn.004b14fa
add esp, 4
mov eax, dword [esp + 0x44]
or eax, 0x80000000
mov dword [edi + ebx*8 + 0x14], eax
add ebx, 1
cmp ebx, dword [esp + 0x4c]
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], ebp
mov word [esp + 0xb4], bp
mov dword [esp + 0x14], ebx
jl 0x47f404
mov ecx, dword [esp + 0x70]
cmp dword [esp + 0x14], ecx
jge 0x4808c5
jmp 0x47fec0
mov ecx, dword [esi + 4]
test ecx, ecx
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x40], edx
je 0x47fedf
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp edi, eax
jb 0x47fee4
call fcn.00402590
mov ebx, dword [esi + 4]
mov eax, edi
shl eax, 4
add ebx, eax
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x47ff03
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 4
jne 0x47ff08
call fcn.00402590
mov ebx, dword [ebx + 4]
mov eax, dword [ebx + 4]
test eax, eax
je 0x47ff2c
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x47ff31
call fcn.00402590
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x148]
push 0
push ecx
lea edx, [esp + 0x120]
push 1
push edx
call fcn.00477c60
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x78], ecx
xor ecx, ecx
mov dword [esp + 0x7c], edx
push 0
push esi
mov edx, edi
lea eax, [ecx + 1]
call fcn.00475200
xor ecx, ecx
mov word [esp + 0x84], ax
push 1
push esi
mov edx, edi
lea eax, [ecx + 1]
call fcn.00475200
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x88]
add ecx, edi
mov dword [ecx], ebx
mov word [esp + 0x8e], ax
mov dword [ecx + 4], ebp
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x8c]
mov dword [ecx + 0xc], edx
movzx edx, dx
movzx eax, ax
add eax, edx
mov dword [esp + 0x54], eax
add esp, 0x20
test edx, edx
lea eax, [edi + eax*8 + 0x10]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
jle 0x480443
add ecx, 0x10
mov dword [esp + 0x20], 0
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x48000e
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x480013
call fcn.00402590
mov edi, dword [esi + 4]
mov ebp, dword [esp + 0x24]
mov ecx, dword [edi + ebp + 4]
add edi, ebp
test ecx, ecx
je 0x480032
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x480037
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x20]
mov eax, dword [edi + 4]
test eax, eax
je 0x48005f
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x480064
call fcn.00402590
mov ecx, dword [esi + 4]
test ecx, ecx
mov ebx, dword [edi + 4]
je 0x48007c
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x480081
call fcn.00402590
mov edi, dword [esi + 4]
mov eax, dword [edi + ebp + 4]
add edi, ebp
test eax, eax
je 0x480098
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 4
jne 0x48009d
call fcn.00402590
mov edi, dword [edi + 4]
mov eax, dword [edi + 4]
test eax, eax
je 0x4800c1
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4800c6
call fcn.00402590
mov eax, dword [edi + 4]
mov ecx, dword [ebx]
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0xb8]
push 2
push eax
mov eax, dword [esp + 0x158]
call fcn.00477c60
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov ebp, dword [eax + 4]
mov ebx, dword [eax + 8]
mov edx, dword [esp + 0x24]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x28]
push 1
push esi
mov eax, 2
mov word [esp + 0xa8], 0
call fcn.00475200
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x164]
add ecx, edx
mov word [esp + 0xaa], ax
mov dword [ecx], edi
mov edi, dword [esp + 0xa8]
movzx eax, ax
mov dword [ecx + 4], ebp
mov dword [ecx + 8], ebx
add esp, 0x18
lea edx, [edx + eax*8 + 0x10]
xor ebx, ebx
test eax, eax
mov dword [ecx + 0xc], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x1c], edx
jle 0x4802ff
mov eax, dword [esp + 0x160]
mov edx, dword [esp + 0x14c]
add edx, eax
add ecx, 0x10
mov dword [esp + 0x48], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], ecx
lea esp, [esp]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14c]
lea ebp, [eax + ecx]
mov ecx, dword [esi + 4]
add eax, 0x10
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x4801aa
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x4801af
call fcn.00402590
mov edi, dword [esi + 4]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4801cb
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x4801d0
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x20]
mov eax, dword [edi + 4]
test eax, eax
je 0x4801fa
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4801ff
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
push edx
mov edx, dword [esp + 0x3c]
push eax
add ecx, edx
push ecx
call fcn.004f40b0
mov eax, dword [esp + 0x154]
mov ecx, dword [eax + 0x108]
mov eax, dword [esp + 0x44]
add ecx, eax
add ecx, dword [esp + 0x16c]
add esp, 0xc
mov dword [ebp], ecx
mov edx, dword [edi + 0x14]
mov dword [ebp + 4], edx
mov ecx, dword [edi + 0xc]
mov dword [ebp + 8], ecx
mov edx, dword [edi + 0x18]
mov dword [ebp + 0xc], edx
mov ecx, dword [edi + 0x14]
lea edx, [ecx + eax + 3]
mov eax, dword [esi + 4]
and edx, 0xfffffffc
test eax, eax
mov dword [esp + 0x38], edx
je 0x480273
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 4
cmp dword [esp + 0x14], ecx
jb 0x480278
call fcn.00402590
mov edi, dword [esi + 4]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x480294
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x480299
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x20]
mov eax, dword [edi + 4]
test eax, eax
je 0x4802c3
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4802c8
call fcn.00402590
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x2c]
movzx edx, word [eax + ecx + 8]
mov eax, dword [esp + 0x44]
mov dword [eax], edx
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov dword [eax + 4], edx
add ebx, 1
add eax, 8
add ecx, 0x1c
cmp ebx, dword [esp + 0x4c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], ecx
jl 0x480180
mov ecx, dword [esi + 4]
xor ebx, ebx
cmp ecx, ebx
je 0x480316
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x48031b
call fcn.00402590
mov edi, dword [esi + 4]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 4]
cmp ecx, ebx
je 0x480337
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x48033c
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x20]
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x480364
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x480369
call fcn.00402590
mov edi, dword [edi + 4]
mov ecx, dword [edi]
mov ebp, 7
mov eax, ecx
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe0], ebx
mov word [esp + 0xd0], bx
lea edi, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x480390
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0xd4]
call fcn.00401fa0
mov byte [esp + 0x140], 3
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x154]
call fcn.00401578
mov edx, dword [eax]
add edx, dword [esp + 0x15c]
mov edi, dword [esp + 0x3c]
or edx, 0x80000000
mov dword [edi], edx
mov byte [esp + 0x140], 0
cmp dword [esp + 0xe4], 8
jb 0x480400
mov eax, dword [esp + 0xd0]
push eax
call fcn.004b14fa
add esp, 4
mov eax, dword [esp + 0x28]
add dword [esp + 0x20], 0x10
or eax, 0x80000000
mov dword [edi + 4], eax
mov eax, dword [esp + 0x18]
add eax, 1
add edi, 8
cmp eax, dword [esp + 0x5c]
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe0], ebx
mov word [esp + 0xd0], bx
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], edi
jl 0x47fff1
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x18], ecx
jge 0x480834
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
mov eax, ecx
shl eax, 4
mov dword [esp + 0x20], eax
lea eax, [edx + ecx*8 + 0x10]
add eax, dword [esp + 0x14c]
mov dword [esp + 0x3c], eax
mov ecx, dword [esi + 4]
test ecx, ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
je 0x48048e
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x480493
call fcn.00402590
mov edi, dword [esi + 4]
mov ebp, dword [esp + 0x24]
mov ecx, dword [edi + ebp + 4]
add edi, ebp
test ecx, ecx
je 0x4804b2
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x4804b7
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x20]
mov eax, dword [edi + 4]
test eax, eax
je 0x4804df
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4804e4
call fcn.00402590
mov ecx, dword [esi + 4]
test ecx, ecx
mov ebx, dword [edi + 4]
je 0x4804fc
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x480501
call fcn.00402590
mov edi, dword [esi + 4]
mov eax, dword [edi + ebp + 4]
add edi, ebp
test eax, eax
je 0x480518
mov edx, dword [edi + 8]
sub edx, eax
sar edx, 4
jne 0x48051d
call fcn.00402590
mov edi, dword [edi + 4]
mov eax, dword [edi + 4]
test eax, eax
je 0x480541
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x480546
call fcn.00402590
mov eax, dword [edi + 4]
mov ecx, dword [ebx]
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x9c]
push 2
push eax
mov eax, dword [esp + 0x158]
call fcn.00477c60
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov ebp, dword [eax + 4]
mov ebx, dword [eax + 8]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x28]
push 1
push esi
mov eax, 2
mov word [esp + 0x98], 0
call fcn.00475200
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x164]
add ecx, edx
mov word [esp + 0x9a], ax
movzx eax, ax
mov dword [ecx], edi
mov edi, dword [esp + 0x98]
mov dword [ecx + 4], ebp
add esp, 0x18
test eax, eax
lea edx, [edx + eax*8 + 0x10]
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], 0
jle 0x480793
mov eax, dword [esp + 0x160]
mov edx, dword [esp + 0x14c]
mov ebx, dword [esp + 0x38]
add edx, eax
add ecx, 0x10
mov dword [esp + 0x48], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x44], ecx
jmp 0x480610
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14c]
lea ebp, [eax + ecx]
mov ecx, dword [esi + 4]
add eax, 0x10
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x48063a
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x48063f
call fcn.00402590
mov edi, dword [esi + 4]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x48065b
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x480660
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x20]
mov eax, dword [edi + 4]
test eax, eax
je 0x48068c
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x30], eax
jb 0x480691
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
push edx
push eax
add ecx, ebx
push ecx
call fcn.004f40b0
mov edx, dword [esp + 0x154]
mov eax, dword [edx + 0x108]
add eax, ebx
add eax, dword [esp + 0x16c]
add esp, 0xc
mov dword [ebp], eax
mov ecx, dword [edi + 0x14]
mov dword [ebp + 4], ecx
mov edx, dword [edi + 0xc]
mov dword [ebp + 8], edx
mov eax, dword [edi + 0x18]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi + 0x14]
mov eax, dword [esi + 4]
lea ebx, [ecx + ebx + 3]
and ebx, 0xfffffffc
test eax, eax
je 0x4806f9
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 4
cmp dword [esp + 0x14], ecx
jb 0x4806fe
call fcn.00402590
mov edi, dword [esi + 4]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x48071a
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x48071f
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x20]
mov eax, dword [edi + 4]
test eax, eax
je 0x48074b
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x30], eax
jb 0x480750
call fcn.00402590
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x2c]
movzx edx, word [edx + ecx + 8]
mov eax, dword [esp + 0x44]
mov dword [eax], edx
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
add edx, 1
add eax, 8
add ecx, 0x1c
cmp edx, dword [esp + 0x4c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], ecx
jl 0x480610
mov dword [esp + 0x38], ebx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4807a8
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x14], eax
jb 0x4807ad
call fcn.00402590
mov edi, dword [esi + 4]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4807c9
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 4
cmp dword [esp + 0x18], eax
jb 0x4807ce
call fcn.00402590
mov edi, dword [edi + 4]
add edi, dword [esp + 0x20]
mov eax, dword [edi + 4]
test eax, eax
je 0x4807f6
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4807fb
call fcn.00402590
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x20], 0x10
or ecx, 0x80000000
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x18]
add ecx, 1
mov dword [eax], edx
add eax, 8
cmp ecx, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], eax
jl 0x480471
mov ecx, dword [esi + 4]
test ecx, ecx
mov ebx, dword [esp + 0x14]
je 0x48084b
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 4
cmp ebx, eax
jb 0x480850
call fcn.00402590
mov edi, dword [esi + 4]
add edi, dword [esp + 0x24]
mov eax, dword [edi + 4]
test eax, eax
je 0x480868
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 4
jne 0x48086d
call fcn.00402590
mov edi, dword [edi + 4]
mov eax, dword [edi + 4]
test eax, eax
je 0x480891
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x480896
call fcn.00402590
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x14c]
or eax, 0x80000000
mov dword [ecx + ebx*8 + 0x10], edx
mov dword [ecx + ebx*8 + 0x14], eax
add ebx, 1
cmp ebx, dword [esp + 0x70]
mov dword [esp + 0x14], ebx
jl 0x47fec0
mov dword [esp + 0x140], 0xffffffff
mov eax, dword [esp + 0x154]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x154]
push ecx
push edx
mov esi, ecx
push esi
lea eax, [esp + 0x5c]
push eax
call fcn.00402d83
mov ecx, dword [esp + 0x154]
push ecx
call fcn.004b14fa
add esp, 4
xor eax, eax
mov dword [esp + 0x154], eax
mov dword [esp + 0x158], eax
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret