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

Disassembly:
push 0xffffffffffffffff
push 0x543df3
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 0x47ba84
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 0x47aa76
mov esi, eax
mov ecx, esi
call fcn.00450500
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.00474270
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 0x47aa8b
mov eax, ecx
mov ebp, dword [esp + 0x108]
mov ecx, ebp
mov dword [ebp + 0x17c], eax
call fcn.0044f3e0
test eax, eax
je 0x47ba84
mov eax, dword [ebx + 0xc8]
test eax, eax
jne 0x47aabb
mov dword [esp + 0x34], 0
jmp 0x47aac5
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.004733a0
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.00518a4f
lea ecx, [esp + 0x74]
mov byte [esp + 0x100], 1
call fcn.004733a0
mov edi, 0x54d910
mov dword [esp + 0x74], edi
mov eax, dword [ebx + 0x3c]
mov byte [esp + 0x100], 2
cmp eax, 6
je 0x47b835
cmp eax, 7
je 0x47b835
cmp eax, 8
je 0x47b835
cmp eax, 1
je 0x47b065
test esi, esi
mov dword [esp + 0x10], 0
jle 0x47ae0f
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 0x47ae70
dec eax
je 0x47ad4e
dec eax
jne 0x47adf4
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.004d2de0
test eax, eax
je 0x47adf4
mov edx, dword [esp + 0x24]
test byte [edx + 8], 4
jne 0x47ab91
mov ecx, dword [edx + 0x14]
lea eax, [ecx + esi + 7]
cmp ebp, eax
mov dword [esp + 0x38], eax
jge 0x47ad31
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 0x47abe8
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x38]
cmp ebx, eax
mov dword [esp + 0x14], ebx
jl 0x47ad31
cmp eax, 6
jge 0x47acf4
push 0x44
call fcn.0051a8b5
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
test esi, esi
je 0x47ac71
mov edx, dword [esp + 0x1c]
mov eax, dword [0x596a5c]
mov edi, dword [edx + 0x5c]
mov dword [esi], eax
mov ecx, dword [0x596a5c]
mov dword [esi + 4], ecx
lea ebx, [esi + 0x10]
push edi
mov ecx, ebx
mov byte [esp + 0x104], 0xb
call fcn.0040c140
mov dword [ebx], 0x54d958
mov edx, dword [0x596a5c]
mov ebx, dword [esp + 0x14]
mov dword [esi + 0x30], edx
mov eax, dword [0x596a5c]
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 0x47ac73
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.00519af3
lea ecx, [edi + 4]
push ecx
lea ecx, [esi + 4]
call fcn.00519af3
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.00519af3
add edi, 0x34
lea ecx, [esi + 0x34]
push edi
call fcn.00519af3
mov edx, dword [esp + 0xa4]
push esi
push edx
lea ecx, [esp + 0xa4]
call fcn.00518c2e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
dec eax
mov ecx, dword [ecx + 0x48]
push eax
call fcn.004d2e20
push eax
lea ecx, [esp + 0x78]
call fcn.00473660
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
cmp eax, 7
jge 0x47acfe
mov eax, 7
cmp ebx, 7
jl 0x47ad31
mov ecx, dword [esp + 0x44]
test ecx, ecx
jne 0x47ad1d
sub ebx, eax
add eax, 0xfffffff9
inc ebx
add edx, 0x10
push ebx
push eax
push edx
lea ecx, [esp + 0x5c]
jmp 0x47ad2c
sub ebx, eax
add eax, 0xfffffff9
inc ebx
add edx, 0x10
push ebx
push eax
push edx
add ecx, 0x10
call fcn.004c6380
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
cmp eax, esi
jl 0x47ae0f
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
jmp 0x47ab91
cmp ebp, 1
jge 0x47ad58
mov ebp, 1
cmp ecx, ebp
jl 0x47adf4
mov ecx, dword [ebx + 0x44]
lea edx, [ebp - 1]
push edx
call fcn.004d24f0
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x47adf4
mov eax, dword [esp + 0x20]
xor edi, edi
sub eax, ebp
inc eax
test eax, eax
mov dword [esp + 0x14], eax
jle 0x47adf4
mov ebp, dword [esp + 0x40]
mov ecx, dword [ebx + 0x44]
lea eax, [esp + 0x18]
push eax
call fcn.004d2540
test eax, eax
je 0x47addb
test edi, edi
je 0x47adbc
mov eax, dword [esp + 0x18]
lea ecx, [edi + ebp]
cmp eax, ecx
jne 0x47adad
inc edi
jmp 0x47adc5
mov edx, dword [ebx + 0x44]
push edi
push ebp
push edx
lea ecx, [esp + 0x5c]
call fcn.004c6380
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 0x47ad8a
test edi, edi
mov dword [esp + 0x40], ebp
jle 0x47adf4
mov ecx, dword [ebx + 0x44]
mov eax, ebp
push edi
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.004c6380
cmp dword [esp + 0x20], esi
jl 0x47ae0f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x47ab5c
mov ebx, dword [esp + 0x108]
lea edx, [esp + 0x50]
push 0
push edx
mov ecx, ebx
call fcn.00451e20
mov eax, dword [esp + 0xa4]
xor esi, esi
lea edi, [eax - 1]
test edi, edi
jl 0x47b017
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 0x3c]
sub eax, 2
je 0x47aff4
sub eax, 2
jne 0x47b00e
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.00452090
jmp 0x47b00e
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.004d2de0
test eax, eax
je 0x47adf4
mov edx, dword [esp + 0x30]
test byte [edx + 8], 2
jne 0x47ae72
mov ecx, dword [edx + 0x10]
lea eax, [ecx + esi + 3]
cmp ebp, eax
mov dword [esp + 0x38], eax
jge 0x47afd7
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 0x47aec9
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x38]
cmp ebx, eax
jl 0x47afd7
cmp eax, 2
jge 0x47af9a
push 0x30
call fcn.0051a8b5
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
test esi, esi
je 0x47af35
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x596a5c]
mov edi, dword [eax + 0x5c]
mov dword [esi], ecx
mov edx, dword [0x596a5c]
mov dword [esi + 4], edx
lea ecx, [esi + 0x14]
mov byte [esp + 0x100], 8
call fcn.004733a0
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 0x47af37
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.00519af3
lea eax, [edi + 4]
lea ecx, [esi + 4]
push eax
call fcn.00519af3
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.00518c2e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
dec eax
mov ecx, dword [ecx + 0x40]
push eax
call fcn.004d2e20
push eax
lea ecx, [esp + 0x78]
call fcn.00473660
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
cmp eax, 3
jge 0x47afa4
mov eax, 3
cmp ebx, 3
jl 0x47afd7
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x47afc3
sub ebx, eax
add eax, 0xfffffffd
inc ebx
add edx, 0xc
push ebx
push eax
push edx
lea ecx, [esp + 0x5c]
jmp 0x47afd2
sub ebx, eax
add eax, 0xfffffffd
inc ebx
add edx, 0xc
push ebx
push eax
push edx
add ecx, 0xc
call fcn.004c6380
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
cmp eax, esi
jl 0x47ae0f
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
jmp 0x47ae72
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.00451fe0
inc esi
cmp esi, edi
jle 0x47ae3c
mov esi, 0x54d7d0
lea ecx, [esp + 0x74]
mov byte [esp + 0x100], 1
mov dword [esp + 0x74], esi
call fcn.004735a0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], 0
call fcn.00518a82
mov dword [esp + 0x50], 0x54d7d4
mov dword [esp + 0x100], 0xc
mov dword [esp + 0x54], 0
jmp 0x47ba63
lea ecx, [esp + 0x88]
call fcn.00518a4f
lea ecx, [esp + 0xb0]
mov byte [esp + 0x100], 0xd
call fcn.00518a4f
lea ecx, [esp + 0xc4]
mov byte [esp + 0x100], 0xe
call fcn.004733a0
mov dword [esp + 0xc4], edi
xor edi, edi
push 0x14
push edi
lea ecx, [esp + 0x90]
mov byte [esp + 0x108], 0xf
call fcn.00518aaf
push 0x14
push edi
lea ecx, [esp + 0xb8]
call fcn.00518aaf
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 0x47b0e2
mov dword [esp + 0x70], edi
jmp 0x47b0e9
mov eax, dword [eax + 0x34]
mov dword [esp + 0x70], eax
cmp esi, edi
mov dword [esp + 0x3c], edi
jle 0x47b737
jmp 0x47b0fb
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 0x47b16b
mov ecx, dword [ebx + 0x54]
call fcn.004ced20
mov edi, eax
cmp esi, edi
jge 0x47b163
cmp esi, 3
jge 0x47b137
mov esi, 3
lea eax, [edi - 1]
lea ecx, [esi - 3]
cmp eax, ebp
jl 0x47b143
mov eax, ebp
add eax, 0xfffffffd
mov dword [esp + 0x10], edi
cmp eax, ecx
jl 0x47b163
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.004c6380
cmp ebp, edi
jl 0x47b737
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], 0
test eax, eax
jle 0x47b722
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.004d2e80
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0xc]
shr eax, 4
and eax, 1
mov dword [esp + 0x40], eax
je 0x47b1c5
mov eax, 2
jmp 0x47b1ce
call fcn.004cddd0
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
lea edx, [eax + edi]
cmp ebx, edx
mov dword [esp + 0x38], edx
jge 0x47b5d6
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 0x47b1f6
mov ebx, edx
mov edx, dword [esp + 0x38]
cmp ebx, ebp
mov dword [esp + 0x10], edx
jl 0x47b5d6
mov eax, dword [esp + 0x40]
test eax, eax
je 0x47b40f
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.0051a8b5
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
test esi, esi
je 0x47b313
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x596a5c]
mov edi, dword [ecx + 0x5c]
mov dword [esi], edx
mov eax, dword [0x596a5c]
mov dword [esi + 4], eax
lea ecx, [esi + 0x1c]
mov byte [esp + 0x100], 0x12
call fcn.004733a0
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.0040c140
mov dword [ebp], 0x54d958
lea ecx, [esi + 0x54]
mov byte [esp + 0x100], 0x14
call fcn.004733a0
lea ecx, [esi + 0x68]
mov byte [esp + 0x100], 0x15
call fcn.004733a0
lea ecx, [esi + 0x7c]
mov byte [esp + 0x100], 0x16
call fcn.004733a0
lea ecx, [esi + 0x90]
mov byte [esp + 0x100], 0x17
call fcn.004733a0
lea ecx, [esi + 0xa4]
mov byte [esp + 0x100], 0x18
call fcn.004733a0
lea ecx, [esi + 0xb8]
mov byte [esp + 0x100], 0x19
call fcn.004733a0
xor eax, eax
mov dword [esi + 0xcc], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 8], eax
jmp 0x47b315
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.00518c2e
mov eax, dword [ebx]
lea ecx, [esp + 0xc4]
push eax
call fcn.00473660
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xb8]
push edx
push eax
lea ecx, [esp + 0xb8]
call fcn.00518c2e
mov edi, dword [esp + 0x18]
mov ecx, esi
push edi
call fcn.00519af3
lea ecx, [edi + 4]
push ecx
lea ecx, [esi + 4]
call fcn.00519af3
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.004c6490
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x14]
add eax, 0x14
push eax
call fcn.004c6490
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004cd8b0
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x47b3c3
inc dword [esp + 0x2c]
test al, 0x20
je 0x47b3d6
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
je 0x47b5ce
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x4c], eax
jge 0x47b5ce
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.004d2e80
jmp 0x47b22a
cmp ebp, 2
jge 0x47b586
push 0xd0
call fcn.0051a8b5
mov esi, eax
add esp, 4
mov dword [esp + 0x4c], esi
test esi, esi
je 0x47b509
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x596a5c]
mov edi, dword [eax + 0x5c]
mov dword [esi], ecx
mov edx, dword [0x596a5c]
mov dword [esi + 4], edx
lea ecx, [esi + 0x1c]
mov byte [esp + 0x100], 0x1c
call fcn.004733a0
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.004733a0
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.004733a0
lea ecx, [esi + 0x68]
mov byte [esp + 0x100], 0x1f
call fcn.004733a0
lea ecx, [esi + 0x7c]
mov byte [esp + 0x100], 0x20
call fcn.004733a0
lea ecx, [esi + 0x90]
mov byte [esp + 0x100], 0x21
call fcn.004733a0
lea ecx, [esi + 0xa4]
mov byte [esp + 0x100], 0x22
call fcn.004733a0
lea ecx, [esi + 0xb8]
mov byte [esp + 0x100], 0x23
call fcn.004733a0
xor eax, eax
mov dword [esi + 0xcc], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 8], eax
jmp 0x47b50b
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.00519af3
lea eax, [edi + 4]
lea ecx, [esi + 4]
push eax
call fcn.00519af3
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.00518c2e
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0xc4]
mov eax, dword [edx]
push eax
call fcn.00473660
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xb8]
push eax
push ecx
lea ecx, [esp + 0xb8]
call fcn.00518c2e
mov ecx, dword [esp + 0x28]
cmp ebp, 3
jge 0x47b590
mov ebp, 3
cmp ebx, 3
jl 0x47b5d6
test esi, esi
jne 0x47b5b4
sub ebx, ebp
add ebp, 0xfffffffd
inc ebx
add ecx, 0x34
push ebx
push ebp
push ecx
lea ecx, [esp + 0x5c]
call fcn.004c6380
mov ecx, dword [esp + 0x28]
jmp 0x47b5d6
sub ebx, ebp
add ebp, 0xfffffffd
inc ebx
add ecx, 0x34
push ebx
push ebp
push ecx
lea ecx, [esi + 0x34]
call fcn.004c6380
mov ecx, dword [esp + 0x28]
jmp 0x47b5d6
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
cmp edx, eax
jl 0x47b722
mov edx, dword [esp + 0x40]
test edx, edx
je 0x47b5f2
xor ebp, ebp
jmp 0x47b5f5
mov ebp, dword [ecx + 0x18]
test ebp, ebp
jle 0x47b665
mov edx, dword [esp + 0x10]
inc ebp
lea ebx, [eax + ebp]
cmp edx, ebx
jge 0x47b657
mov edi, dword [esp + 0x20]
sub edx, eax
sub edi, eax
lea eax, [ebp - 1]
cmp eax, edi
jl 0x47b616
mov eax, edi
cmp eax, edx
mov dword [esp + 0x10], ebx
jl 0x47b657
cmp edx, 1
jge 0x47b628
mov edx, 1
cmp eax, 1
jl 0x47b657
test esi, esi
jne 0x47b641
sub eax, edx
inc eax
dec edx
push eax
add ecx, 0x14
push edx
push ecx
lea ecx, [esp + 0x5c]
jmp 0x47b64e
sub eax, edx
inc eax
dec edx
push eax
add ecx, 0x14
push edx
push ecx
lea ecx, [esi + 0x14]
call fcn.004c6380
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, ebx
cmp edx, eax
jl 0x47b722
mov edx, dword [esp + 0x40]
test edx, edx
je 0x47b671
xor ebx, ebx
jmp 0x47b677
mov ebx, dword [ecx + 0x64]
shr ebx, 2
mov edx, dword [esp + 0x10]
lea edi, [ebx + eax]
cmp edx, edi
jge 0x47b6fa
sub edx, eax
mov ebp, edx
mov edx, dword [esp + 0x20]
sub edx, eax
lea eax, [ebx - 1]
cmp eax, edx
jge 0x47b695
mov edx, eax
cmp edx, ebp
mov dword [esp + 0x10], edi
jl 0x47b6fa
lea eax, [esp + 0x88]
push eax
push esi
push edx
push ebp
push ecx
mov ecx, dword [esp + 0x30]
call fcn.004a86f0
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0x90]
shr ecx, 2
sub eax, ecx
test eax, eax
jle 0x47b6fa
mov ebx, dword [esp + 0x44]
mov esi, eax
mov eax, dword [ebx]
lea ecx, [esp + 0xc4]
push eax
call fcn.00473660
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xb8]
push edx
push eax
lea ecx, [esp + 0xb8]
call fcn.00518c2e
dec esi
jne 0x47b6cf
cmp dword [esp + 0x20], edi
jl 0x47b722
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [edx + 0x54]
call fcn.004cec10
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x47b17f
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x47b0f7
mov ebx, dword [esp + 0x108]
lea eax, [esp + 0x50]
push 1
push eax
mov ecx, ebx
call fcn.00451e20
mov ecx, dword [esp + 0x90]
xor esi, esi
lea edi, [ecx - 1]
test edi, edi
jl 0x47b7a4
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 0x47b781
push 0
push 0
call fcn.004cd010
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.00452160
inc esi
cmp esi, edi
jle 0x47b75c
mov esi, 0x54d7d0
lea ecx, [esp + 0xc4]
mov byte [esp + 0x100], 0xe
mov dword [esp + 0xc4], esi
call fcn.004735a0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x100], 0xd
call fcn.00518a82
lea ecx, [esp + 0x88]
mov byte [esp + 0x100], 2
call fcn.00518a82
lea ecx, [esp + 0x74]
mov byte [esp + 0x100], 1
mov dword [esp + 0x74], esi
call fcn.004735a0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], 0
call fcn.00518a82
mov dword [esp + 0x50], 0x54d7d4
mov dword [esp + 0x100], 0x24
mov dword [esp + 0x54], 0
jmp 0x47ba63
mov edi, dword [ebx + 0x5c]
lea ecx, [esp + 0xe0]
call fcn.004733a0
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.004d26f0
test esi, esi
mov dword [esp + 0x48], eax
jle 0x47b998
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 0x47b8a3
mov ecx, 1
cmp eax, ecx
jl 0x47b982
sub eax, ecx
inc eax
dec ecx
push ecx
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.00499400
mov esi, eax
cmp esi, 0xffffffff
jne 0x47b8c4
xor esi, esi
mov eax, dword [esp + 0x48]
xor edi, edi
cmp esi, eax
jge 0x47b982
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x47b968
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + esi*4]
push edx
call fcn.004d25a0
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 0x47b95b
mov eax, dword [ebx + 0x3c]
cmp eax, 6
jne 0x47b90d
cmp ebp, 0x10000000
je 0x47b927
cmp eax, 7
jne 0x47b91a
cmp ebp, 0x20000000
je 0x47b927
cmp eax, 8
jne 0x47b95b
cmp ebp, 0x30000000
jne 0x47b95b
test edi, edi
je 0x47b94e
mov ecx, dword [esp + 0x24]
add ecx, edi
cmp ecx, esi
jne 0x47b938
inc edi
jmp 0x47b957
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0x50]
push edi
push edx
push eax
lea ecx, [esp + 0xe4]
call fcn.004c6380
mov dword [esp + 0x24], esi
mov edi, 1
dec dword [esp + 0x14]
mov eax, dword [esp + 0x48]
inc esi
cmp esi, eax
jl 0x47b8d2
test edi, edi
jle 0x47b982
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0x50]
push edi
push ecx
push edx
lea ecx, [esp + 0xe4]
call fcn.004c6380
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x3c], eax
jne 0x47b886
mov ebp, dword [esp + 0x108]
mov eax, dword [esp + 0xdc]
test eax, eax
mov edi, eax
jle 0x47b9df
xor esi, esi
mov eax, esi
lea ecx, [esp + 0xd8]
push eax
inc esi
call fcn.004d26c0
test eax, eax
je 0x47b9c9
push eax
lea ecx, [ebp + 0x260]
call fcn.004d29c0
jmp 0x47b9a7
push edi
lea eax, [esp + 0xdc]
push 0
push eax
lea ecx, [ebp + 0x260]
call fcn.004c6380
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.004735a0
mov esi, 0x54d7d0
lea ecx, [esp + 0xe0]
mov byte [esp + 0x100], 2
mov dword [esp + 0xe0], esi
call fcn.004735a0
lea ecx, [esp + 0x74]
mov byte [esp + 0x100], 1
mov dword [esp + 0x74], esi
call fcn.004735a0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call fcn.00518a82
mov dword [esp + 0x50], edi
mov dword [esp + 0x100], 5
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x58]
call fcn.004735a0
lea ecx, [esp + 0x58]
mov dword [esp + 0x100], 0xffffffff
mov dword [esp + 0x58], esi
call fcn.004735a0
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf4
ret 4