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

Disassembly:
push 0xffffffffffffffff
push 0x543983
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
mov eax, dword [esp + 0xf8]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax + 0x10c]
mov ebx, ecx
or edi, 1
mov dword [eax + 0x10c], edi
mov dword [esp + 0x1c], ebx
mov ecx, dword [ebx + 0xc8]
shr ecx, 2
cmp ecx, 2
jl 0x47b6b4
mov edi, dword [ebx + 0x5c]
lea ebp, [eax + 0x110]
add edi, 0x110
mov ecx, 4
mov esi, ebp
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x47a6a6
mov esi, eax
mov ecx, esi
call fcn.0044ffb0
mov eax, dword [esi + 0x10c]
push 0x10
or al, 1
mov dword [esi + 0x10c], eax
mov eax, dword [ebx + 0x5c]
add eax, 0x110
push eax
push ebp
call fcn.00473fe0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebx + 0x5c]
mov eax, dword [eax + 0x17c]
mov ecx, dword [ecx + 0x17c]
cmp eax, ecx
ja 0x47a6bb
mov eax, ecx
mov ebp, dword [esp + 0x108]
mov ecx, ebp
mov dword [ebp + 0x17c], eax
call fcn.0044ee90
test eax, eax
je 0x47b6b4
mov eax, dword [ebx + 0xc8]
test eax, eax
jne 0x47a6eb
mov dword [esp + 0x34], 0
jmp 0x47a6f5
mov edx, dword [ebx + 0xc0]
mov dword [esp + 0x34], edx
mov esi, dword [ebx + 0xc8]
mov edi, dword [ebx + 0x5c]
shr esi, 3
lea ecx, [esp + 0x58]
mov dword [esp + 0x48], esi
call fcn.00473110
xor eax, eax
mov dword [esp + 0x6c], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], 0x54d958
lea ecx, [esp + 0x9c]
mov dword [esp + 0x100], eax
call fcn.0051865f
lea ecx, [esp + 0x74]
mov byte [esp + 0x100], 1
call fcn.00473110
mov edi, 0x54d910
mov dword [esp + 0x74], edi
mov eax, dword [ebx + 0x3c]
mov byte [esp + 0x100], 2
cmp eax, 6
je 0x47b465
cmp eax, 7
je 0x47b465
cmp eax, 8
je 0x47b465
cmp eax, 1
je 0x47ac95
test esi, esi
mov dword [esp + 0x10], 0
jle 0x47aa3f
mov eax, dword [esp + 0x34]
xor esi, esi
mov ebp, dword [eax]
mov ecx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x20], ecx
add eax, 4
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x3c]
sub eax, 2
je 0x47aaa0
dec eax
je 0x47a97e
dec eax
jne 0x47aa24
xor edi, edi
lea ecx, [esp + 0x24]
mov eax, edi
inc edi
push ecx
mov ecx, dword [ebx + 0x48]
push eax
mov dword [esp + 0x18], edi
call fcn.004d29c0
test eax, eax
je 0x47aa24
mov edx, dword [esp + 0x24]
test byte [edx + 8], 4
jne 0x47a7c1
mov ecx, dword [edx + 0x14]
lea eax, [ecx + esi + 7]
cmp ebp, eax
mov dword [esp + 0x38], eax
jge 0x47a961
mov eax, dword [esp + 0x20]
lea ebx, [ecx + 6]
sub eax, esi
sub ebp, esi
cmp ebx, eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x2c], ebp
jl 0x47a818
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x38]
cmp ebx, eax
mov dword [esp + 0x14], ebx
jl 0x47a961
cmp eax, 6
jge 0x47a924
push 0x44
call fcn.0051a4c6
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
test esi, esi
je 0x47a8a1
mov edx, dword [esp + 0x1c]
mov eax, dword [0x59697c]
mov edi, dword [edx + 0x5c]
mov dword [esi], eax
mov ecx, dword [0x59697c]
mov dword [esi + 4], ecx
lea ebx, [esi + 0x10]
push edi
mov ecx, ebx
mov byte [esp + 0x104], 0xb
call fcn.0040bdb0
mov dword [ebx], 0x54d958
mov edx, dword [0x59697c]
mov ebx, dword [esp + 0x14]
mov dword [esi + 0x30], edx
mov eax, dword [0x59697c]
mov dword [esi + 0x34], eax
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x40], edi
mov dword [esi + 8], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
jmp 0x47a8a3
xor esi, esi
mov edi, dword [esp + 0x24]
mov ecx, esi
push edi
mov byte [esp + 0x104], 2
mov dword [esp + 0x48], esi
call fcn.00519703
lea ecx, [edi + 4]
push ecx
lea ecx, [esi + 4]
call fcn.00519703
mov edx, dword [edi + 8]
lea ecx, [edi + 0x30]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
push ecx
lea ecx, [esi + 0x30]
mov dword [esi + 0xc], eax
call fcn.00519703
add edi, 0x34
lea ecx, [esi + 0x34]
push edi
call fcn.00519703
mov edx, dword [esp + 0xa4]
push esi
push edx
lea ecx, [esp + 0xa4]
call fcn.005188d5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
dec eax
mov ecx, dword [ecx + 0x48]
push eax
call fcn.004d2a00
push eax
lea ecx, [esp + 0x78]
call fcn.004733d0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
cmp eax, 7
jge 0x47a92e
mov eax, 7
cmp ebx, 7
jl 0x47a961
mov ecx, dword [esp + 0x44]
test ecx, ecx
jne 0x47a94d
sub ebx, eax
add eax, 0xfffffff9
inc ebx
add edx, 0x10
push ebx
push eax
push edx
lea ecx, [esp + 0x5c]
jmp 0x47a95c
sub ebx, eax
add eax, 0xfffffff9
inc ebx
add edx, 0x10
push ebx
push eax
push edx
add ecx, 0x10
call fcn.004c5f60
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
cmp eax, esi
jl 0x47aa3f
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
jmp 0x47a7c1
cmp ebp, 1
jge 0x47a988
mov ebp, 1
cmp ecx, ebp
jl 0x47aa24
mov ecx, dword [ebx + 0x44]
lea edx, [ebp - 1]
push edx
call fcn.004d20d0
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x47aa24
mov eax, dword [esp + 0x20]
xor edi, edi
sub eax, ebp
inc eax
test eax, eax
mov dword [esp + 0x14], eax
jle 0x47aa24
mov ebp, dword [esp + 0x40]
mov ecx, dword [ebx + 0x44]
lea eax, [esp + 0x18]
push eax
call fcn.004d2120
test eax, eax
je 0x47aa0b
test edi, edi
je 0x47a9ec
mov eax, dword [esp + 0x18]
lea ecx, [edi + ebp]
cmp eax, ecx
jne 0x47a9dd
inc edi
jmp 0x47a9f5
mov edx, dword [ebx + 0x44]
push edi
push ebp
push edx
lea ecx, [esp + 0x5c]
call fcn.004c5f60
mov ebp, dword [esp + 0x18]
mov edi, 1
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
dec eax
test eax, eax
mov dword [esp + 0x14], eax
jg 0x47a9ba
test edi, edi
mov dword [esp + 0x40], ebp
jle 0x47aa24
mov ecx, dword [ebx + 0x44]
mov eax, ebp
push edi
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.004c5f60
cmp dword [esp + 0x20], esi
jl 0x47aa3f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x47a78c
mov ebx, dword [esp + 0x108]
lea edx, [esp + 0x50]
push 0
push edx
mov ecx, ebx
call fcn.004518d0
mov eax, dword [esp + 0xa4]
xor esi, esi
lea edi, [eax - 1]
test edi, edi
jl 0x47ac47
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 0x3c]
sub eax, 2
je 0x47ac24
sub eax, 2
jne 0x47ac3e
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0xa0]
mov edx, dword [ecx + esi*4]
mov ecx, dword [eax + esi*4]
push edx
push ecx
mov ecx, ebx
call fcn.00451b40
jmp 0x47ac3e
xor edi, edi
mov ecx, dword [ebx + 0x40]
lea edx, [esp + 0x30]
mov eax, edi
inc edi
push edx
push eax
mov dword [esp + 0x18], edi
call fcn.004d29c0
test eax, eax
je 0x47aa24
mov edx, dword [esp + 0x30]
test byte [edx + 8], 2
jne 0x47aaa2
mov ecx, dword [edx + 0x10]
lea eax, [ecx + esi + 3]
cmp ebp, eax
mov dword [esp + 0x38], eax
jge 0x47ac07
mov eax, dword [esp + 0x20]
lea ebx, [ecx + 2]
sub eax, esi
sub ebp, esi
cmp ebx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x2c], ebp
jl 0x47aaf9
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x38]
cmp ebx, eax
jl 0x47ac07
cmp eax, 2
jge 0x47abca
push 0x30
call fcn.0051a4c6
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
test esi, esi
je 0x47ab65
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x59697c]
mov edi, dword [eax + 0x5c]
mov dword [esi], ecx
mov edx, dword [0x59697c]
mov dword [esi + 4], edx
lea ecx, [esi + 0x14]
mov byte [esp + 0x100], 8
call fcn.00473110
xor eax, eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], 0x54d958
mov dword [esi + 0x2c], edi
mov dword [esi + 8], eax
jmp 0x47ab67
xor esi, esi
mov edi, dword [esp + 0x30]
mov ecx, esi
push edi
mov byte [esp + 0x104], 2
mov dword [esp + 0x18], esi
call fcn.00519703
lea eax, [edi + 4]
lea ecx, [esi + 4]
push eax
call fcn.00519703
mov ecx, dword [edi + 8]
push esi
mov dword [esi + 8], ecx
mov edx, dword [esp + 0xa8]
push edx
lea ecx, [esp + 0xa4]
call fcn.005188d5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
dec eax
mov ecx, dword [ecx + 0x40]
push eax
call fcn.004d2a00
push eax
lea ecx, [esp + 0x78]
call fcn.004733d0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
cmp eax, 3
jge 0x47abd4
mov eax, 3
cmp ebx, 3
jl 0x47ac07
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x47abf3
sub ebx, eax
add eax, 0xfffffffd
inc ebx
add edx, 0xc
push ebx
push eax
push edx
lea ecx, [esp + 0x5c]
jmp 0x47ac02
sub ebx, eax
add eax, 0xfffffffd
inc ebx
add edx, 0xc
push ebx
push eax
push edx
add ecx, 0xc
call fcn.004c5f60
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
cmp eax, esi
jl 0x47aa3f
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
jmp 0x47aaa2
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0xa0]
mov eax, dword [edx + esi*4]
mov edx, dword [ecx + esi*4]
push eax
push edx
mov ecx, ebx
call fcn.00451a90
inc esi
cmp esi, edi
jle 0x47aa6c
mov esi, 0x54d7d0
lea ecx, [esp + 0x74]
mov byte [esp + 0x100], 1
mov dword [esp + 0x74], esi
call fcn.00473310
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], 0
call fcn.00518692
mov dword [esp + 0x50], 0x54d7d4
mov dword [esp + 0x100], 0xc
mov dword [esp + 0x54], 0
jmp 0x47b693
lea ecx, [esp + 0x88]
call fcn.0051865f
lea ecx, [esp + 0xb0]
mov byte [esp + 0x100], 0xd
call fcn.0051865f
lea ecx, [esp + 0xc4]
mov byte [esp + 0x100], 0xe
call fcn.00473110
mov dword [esp + 0xc4], edi
xor edi, edi
push 0x14
push edi
lea ecx, [esp + 0x90]
mov byte [esp + 0x108], 0xf
call fcn.005186bf
push 0x14
push edi
lea ecx, [esp + 0xb8]
call fcn.005186bf
mov eax, dword [ebx + 0x54]
mov ecx, dword [eax + 0x3c]
shr ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x3c]
cmp ecx, edi
jne 0x47ad12
mov dword [esp + 0x70], edi
jmp 0x47ad19
mov eax, dword [eax + 0x34]
mov dword [esp + 0x70], eax
cmp esi, edi
mov dword [esp + 0x3c], edi
jle 0x47b367
jmp 0x47ad2b
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
xor edi, edi
mov esi, dword [eax]
mov ebp, dword [eax + 4]
add eax, 4
mov dword [esp + 0x10], esi
add eax, 4
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x58]
test eax, eax
jne 0x47ad9b
mov ecx, dword [ebx + 0x54]
call fcn.004ce900
mov edi, eax
cmp esi, edi
jge 0x47ad93
cmp esi, 3
jge 0x47ad67
mov esi, 3
lea eax, [edi - 1]
lea ecx, [esi - 3]
cmp eax, ebp
jl 0x47ad73
mov eax, ebp
add eax, 0xfffffffd
mov dword [esp + 0x10], edi
cmp eax, ecx
jl 0x47ad93
sub eax, ecx
inc eax
push eax
push ecx
mov ecx, dword [ebx + 0x54]
add ecx, 0xc
push ecx
lea ecx, [esp + 0x5c]
call fcn.004c5f60
cmp ebp, edi
jl 0x47b367
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], 0
test eax, eax
jle 0x47b352
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x24]
xor esi, esi
lea ecx, [esp + 0x28]
lea eax, [edx + eax*4]
push esi
mov dword [esp + 0x48], eax
push ecx
mov edx, dword [eax]
mov eax, dword [esp + 0x24]
push edx
mov ecx, dword [eax + 0x5c]
add ecx, 0x1f0
call fcn.004d2a60
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0xc]
shr eax, 4
and eax, 1
mov dword [esp + 0x40], eax
je 0x47adf5
mov eax, 2
jmp 0x47adfe
call fcn.004cd9b0
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
lea edx, [eax + edi]
cmp ebx, edx
mov dword [esp + 0x38], edx
jge 0x47b206
mov edx, ebx
lea ebx, [eax - 1]
sub edx, edi
mov ebp, edx
mov edx, dword [esp + 0x20]
sub edx, edi
cmp ebx, edx
jl 0x47ae26
mov ebx, edx
mov edx, dword [esp + 0x38]
cmp ebx, ebp
mov dword [esp + 0x10], edx
jl 0x47b206
mov eax, dword [esp + 0x40]
test eax, eax
je 0x47b03f
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x4c], eax
push 0xd0
call fcn.0051a4c6
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
test esi, esi
je 0x47af43
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x59697c]
mov edi, dword [ecx + 0x5c]
mov dword [esi], edx
mov eax, dword [0x59697c]
mov dword [esi + 4], eax
lea ecx, [esi + 0x1c]
mov byte [esp + 0x100], 0x12
call fcn.00473110
mov dword [esi + 0x30], edi
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0x54d958
lea ebp, [esi + 0x34]
push edi
mov ecx, ebp
mov byte [esp + 0x104], 0x13
call fcn.0040bdb0
mov dword [ebp], 0x54d958
lea ecx, [esi + 0x54]
mov byte [esp + 0x100], 0x14
call fcn.00473110
lea ecx, [esi + 0x68]
mov byte [esp + 0x100], 0x15
call fcn.00473110
lea ecx, [esi + 0x7c]
mov byte [esp + 0x100], 0x16
call fcn.00473110
lea ecx, [esi + 0x90]
mov byte [esp + 0x100], 0x17
call fcn.00473110
lea ecx, [esi + 0xa4]
mov byte [esp + 0x100], 0x18
call fcn.00473110
lea ecx, [esi + 0xb8]
mov byte [esp + 0x100], 0x19
call fcn.00473110
xor eax, eax
mov dword [esi + 0xcc], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 8], eax
jmp 0x47af45
xor esi, esi
mov ecx, dword [esp + 0x90]
push esi
push ecx
lea ecx, [esp + 0x90]
mov byte [esp + 0x108], 0xf
mov dword [esp + 0x38], esi
call fcn.005188d5
mov eax, dword [ebx]
lea ecx, [esp + 0xc4]
push eax
call fcn.004733d0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xb8]
push edx
push eax
lea ecx, [esp + 0xb8]
call fcn.005188d5
mov edi, dword [esp + 0x18]
mov ecx, esi
push edi
call fcn.00519703
lea ecx, [edi + 4]
push ecx
lea ecx, [esi + 4]
call fcn.00519703
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [esp + 0x18]
add edx, 0x34
lea ecx, [esi + 0x34]
push edx
call fcn.004c6070
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x14]
add eax, 0x14
push eax
call fcn.004c6070
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004cd490
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x47aff3
inc dword [esp + 0x2c]
test al, 0x20
je 0x47b006
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
je 0x47b1fe
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x4c], eax
jge 0x47b1fe
mov ecx, dword [ebx]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push 0
push eax
push ecx
mov ecx, dword [edx + 0x5c]
add ecx, 0x1f0
call fcn.004d2a60
jmp 0x47ae5a
cmp ebp, 2
jge 0x47b1b6
push 0xd0
call fcn.0051a4c6
mov esi, eax
add esp, 4
mov dword [esp + 0x4c], esi
test esi, esi
je 0x47b139
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x59697c]
mov edi, dword [eax + 0x5c]
mov dword [esi], ecx
mov edx, dword [0x59697c]
mov dword [esi + 4], edx
lea ecx, [esi + 0x1c]
mov byte [esp + 0x100], 0x1c
call fcn.00473110
mov dword [esi + 0x30], edi
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0x54d958
lea ecx, [esi + 0x3c]
mov byte [esp + 0x100], 0x1d
call fcn.00473110
mov dword [esi + 0x50], edi
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0x54d958
lea ecx, [esi + 0x54]
mov byte [esp + 0x100], 0x1e
call fcn.00473110
lea ecx, [esi + 0x68]
mov byte [esp + 0x100], 0x1f
call fcn.00473110
lea ecx, [esi + 0x7c]
mov byte [esp + 0x100], 0x20
call fcn.00473110
lea ecx, [esi + 0x90]
mov byte [esp + 0x100], 0x21
call fcn.00473110
lea ecx, [esi + 0xa4]
mov byte [esp + 0x100], 0x22
call fcn.00473110
lea ecx, [esi + 0xb8]
mov byte [esp + 0x100], 0x23
call fcn.00473110
xor eax, eax
mov dword [esi + 0xcc], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 8], eax
jmp 0x47b13b
xor esi, esi
mov edi, dword [esp + 0x28]
mov ecx, esi
push edi
mov byte [esp + 0x104], 0xf
mov dword [esp + 0x34], esi
call fcn.00519703
lea eax, [edi + 4]
lea ecx, [esi + 4]
push eax
call fcn.00519703
mov ecx, dword [edi + 8]
push esi
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x94]
push ecx
lea ecx, [esp + 0x90]
call fcn.005188d5
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0xc4]
mov eax, dword [edx]
push eax
call fcn.004733d0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xb8]
push eax
push ecx
lea ecx, [esp + 0xb8]
call fcn.005188d5
mov ecx, dword [esp + 0x28]
cmp ebp, 3
jge 0x47b1c0
mov ebp, 3
cmp ebx, 3
jl 0x47b206
test esi, esi
jne 0x47b1e4
sub ebx, ebp
add ebp, 0xfffffffd
inc ebx
add ecx, 0x34
push ebx
push ebp
push ecx
lea ecx, [esp + 0x5c]
call fcn.004c5f60
mov ecx, dword [esp + 0x28]
jmp 0x47b206
sub ebx, ebp
add ebp, 0xfffffffd
inc ebx
add ecx, 0x34
push ebx
push ebp
push ecx
lea ecx, [esi + 0x34]
call fcn.004c5f60
mov ecx, dword [esp + 0x28]
jmp 0x47b206
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
cmp edx, eax
jl 0x47b352
mov edx, dword [esp + 0x40]
test edx, edx
je 0x47b222
xor ebp, ebp
jmp 0x47b225
mov ebp, dword [ecx + 0x18]
test ebp, ebp
jle 0x47b295
mov edx, dword [esp + 0x10]
inc ebp
lea ebx, [eax + ebp]
cmp edx, ebx
jge 0x47b287
mov edi, dword [esp + 0x20]
sub edx, eax
sub edi, eax
lea eax, [ebp - 1]
cmp eax, edi
jl 0x47b246
mov eax, edi
cmp eax, edx
mov dword [esp + 0x10], ebx
jl 0x47b287
cmp edx, 1
jge 0x47b258
mov edx, 1
cmp eax, 1
jl 0x47b287
test esi, esi
jne 0x47b271
sub eax, edx
inc eax
dec edx
push eax
add ecx, 0x14
push edx
push ecx
lea ecx, [esp + 0x5c]
jmp 0x47b27e
sub eax, edx
inc eax
dec edx
push eax
add ecx, 0x14
push edx
push ecx
lea ecx, [esi + 0x14]
call fcn.004c5f60
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, ebx
cmp edx, eax
jl 0x47b352
mov edx, dword [esp + 0x40]
test edx, edx
je 0x47b2a1
xor ebx, ebx
jmp 0x47b2a7
mov ebx, dword [ecx + 0x64]
shr ebx, 2
mov edx, dword [esp + 0x10]
lea edi, [ebx + eax]
cmp edx, edi
jge 0x47b32a
sub edx, eax
mov ebp, edx
mov edx, dword [esp + 0x20]
sub edx, eax
lea eax, [ebx - 1]
cmp eax, edx
jge 0x47b2c5
mov edx, eax
cmp edx, ebp
mov dword [esp + 0x10], edi
jl 0x47b32a
lea eax, [esp + 0x88]
push eax
push esi
push edx
push ebp
push ecx
mov ecx, dword [esp + 0x30]
call fcn.004a8320
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0x90]
shr ecx, 2
sub eax, ecx
test eax, eax
jle 0x47b32a
mov ebx, dword [esp + 0x44]
mov esi, eax
mov eax, dword [ebx]
lea ecx, [esp + 0xc4]
push eax
call fcn.004733d0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xb8]
push edx
push eax
lea ecx, [esp + 0xb8]
call fcn.005188d5
dec esi
jne 0x47b2ff
cmp dword [esp + 0x20], edi
jl 0x47b352
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [edx + 0x54]
call fcn.004ce7f0
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x47adaf
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x47ad27
mov ebx, dword [esp + 0x108]
lea eax, [esp + 0x50]
push 1
push eax
mov ecx, ebx
call fcn.004518d0
mov ecx, dword [esp + 0x90]
xor esi, esi
lea edi, [ecx - 1]
test edi, edi
jl 0x47b3d4
mov edx, dword [esp + 0x8c]
mov ecx, dword [edx + esi*4]
mov dword [esp + 0x28], ecx
mov eax, dword [ecx + 0xc8]
test eax, eax
jne 0x47b3b1
push 0
push 0
call fcn.004ccbf0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0xcc]
mov edx, dword [eax + esi*4]
mov eax, dword [esp + 0xb4]
push edx
mov edx, dword [eax + esi*4]
push edx
push ecx
mov ecx, ebx
call fcn.00451c10
inc esi
cmp esi, edi
jle 0x47b38c
mov esi, 0x54d7d0
lea ecx, [esp + 0xc4]
mov byte [esp + 0x100], 0xe
mov dword [esp + 0xc4], esi
call fcn.00473310
lea ecx, [esp + 0xb0]
mov byte [esp + 0x100], 0xd
call fcn.00518692
lea ecx, [esp + 0x88]
mov byte [esp + 0x100], 2
call fcn.00518692
lea ecx, [esp + 0x74]
mov byte [esp + 0x100], 1
mov dword [esp + 0x74], esi
call fcn.00473310
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], 0
call fcn.00518692
mov dword [esp + 0x50], 0x54d7d4
mov dword [esp + 0x100], 0x24
mov dword [esp + 0x54], 0
jmp 0x47b693
mov edi, dword [ebx + 0x5c]
lea ecx, [esp + 0xe0]
call fcn.00473110
mov dword [esp + 0xf4], edi
mov dword [esp + 0xdc], 0
mov dword [esp + 0xd8], 0x54d938
mov ecx, dword [ebx + 0x50]
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x104], 3
call fcn.004d22d0
test esi, esi
mov dword [esp + 0x48], eax
jle 0x47b5c8
mov dword [esp + 0x3c], esi
mov edx, dword [esp + 0x34]
mov ecx, dword [edx]
mov eax, dword [edx + 4]
add edx, 4
add edx, 4
cmp ecx, 1
mov dword [esp + 0x34], edx
jge 0x47b4d3
mov ecx, 1
cmp eax, ecx
jl 0x47b5b2
sub eax, ecx
inc eax
dec ecx
push ecx
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.00499020
mov esi, eax
cmp esi, 0xffffffff
jne 0x47b4f4
xor esi, esi
mov eax, dword [esp + 0x48]
xor edi, edi
cmp esi, eax
jge 0x47b5b2
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x47b598
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + esi*4]
push edx
call fcn.004d2180
mov ecx, dword [ebx + 0x50]
add esp, 4
mov ebp, eax
mov eax, dword [ecx]
push esi
call dword [eax + 0x1c]
test eax, eax
jne 0x47b58b
mov eax, dword [ebx + 0x3c]
cmp eax, 6
jne 0x47b53d
cmp ebp, 0x10000000
je 0x47b557
cmp eax, 7
jne 0x47b54a
cmp ebp, 0x20000000
je 0x47b557
cmp eax, 8
jne 0x47b58b
cmp ebp, 0x30000000
jne 0x47b58b
test edi, edi
je 0x47b57e
mov ecx, dword [esp + 0x24]
add ecx, edi
cmp ecx, esi
jne 0x47b568
inc edi
jmp 0x47b587
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0x50]
push edi
push edx
push eax
lea ecx, [esp + 0xe4]
call fcn.004c5f60
mov dword [esp + 0x24], esi
mov edi, 1
dec dword [esp + 0x14]
mov eax, dword [esp + 0x48]
inc esi
cmp esi, eax
jl 0x47b502
test edi, edi
jle 0x47b5b2
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0x50]
push edi
push ecx
push edx
lea ecx, [esp + 0xe4]
call fcn.004c5f60
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x3c], eax
jne 0x47b4b6
mov ebp, dword [esp + 0x108]
mov eax, dword [esp + 0xdc]
test eax, eax
mov edi, eax
jle 0x47b60f
xor esi, esi
mov eax, esi
lea ecx, [esp + 0xd8]
push eax
inc esi
call fcn.004d22a0
test eax, eax
je 0x47b5f9
push eax
lea ecx, [ebp + 0x260]
call fcn.004d25a0
jmp 0x47b5d7
push edi
lea eax, [esp + 0xdc]
push 0
push eax
lea ecx, [ebp + 0x260]
call fcn.004c5f60
mov edi, 0x54d7d4
mov dword [esp + 0xd8], edi
xor ebx, ebx
lea ecx, [esp + 0xe0]
mov byte [esp + 0x100], 4
mov dword [esp + 0xdc], ebx
call fcn.00473310
mov esi, 0x54d7d0
lea ecx, [esp + 0xe0]
mov byte [esp + 0x100], 2
mov dword [esp + 0xe0], esi
call fcn.00473310
lea ecx, [esp + 0x74]
mov byte [esp + 0x100], 1
mov dword [esp + 0x74], esi
call fcn.00473310
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call fcn.00518692
mov dword [esp + 0x50], edi
mov dword [esp + 0x100], 5
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x58]
call fcn.00473310
lea ecx, [esp + 0x58]
mov dword [esp + 0x100], 0xffffffff
mov dword [esp + 0x58], esi
call fcn.00473310
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf4
ret 4