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

Disassembly:
push 0xffffffffffffffff
push 0x53e563
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 0x4790f4
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 0x4780e6
mov esi, eax
mov ecx, esi
call fcn.0044e080
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.00471a00
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 0x4780fb
mov eax, ecx
mov ebp, dword [esp + 0x108]
mov ecx, ebp
mov dword [ebp + 0x17c], eax
call fcn.0044cf60
test eax, eax
je 0x4790f4
mov eax, dword [ebx + 0xc8]
test eax, eax
jne 0x47812b
mov dword [esp + 0x34], 0
jmp 0x478135
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.00470b30
xor eax, eax
mov dword [esp + 0x6c], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], 0x547f50
lea ecx, [esp + 0x9c]
mov dword [esp + 0x100], eax
call fcn.0051337f
lea ecx, [esp + 0x74]
mov byte [esp + 0x100], 1
call fcn.00470b30
mov edi, 0x5478f0
mov dword [esp + 0x74], edi
mov eax, dword [ebx + 0x3c]
mov byte [esp + 0x100], 2
cmp eax, 6
je 0x478ea5
cmp eax, 7
je 0x478ea5
cmp eax, 8
je 0x478ea5
cmp eax, 1
je 0x4786d5
test esi, esi
mov dword [esp + 0x10], 0
jle 0x47847f
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 0x4784e0
dec eax
je 0x4783be
dec eax
jne 0x478464
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.004d03c0
test eax, eax
je 0x478464
mov edx, dword [esp + 0x24]
test byte [edx + 8], 4
jne 0x478201
mov ecx, dword [edx + 0x14]
lea eax, [ecx + esi + 7]
cmp ebp, eax
mov dword [esp + 0x38], eax
jge 0x4783a1
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 0x478258
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x38]
cmp ebx, eax
mov dword [esp + 0x14], ebx
jl 0x4783a1
cmp eax, 6
jge 0x478364
push 0x44
call fcn.005151e5
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
test esi, esi
je 0x4782e1
mov edx, dword [esp + 0x1c]
mov eax, dword [0x58f614]
mov edi, dword [edx + 0x5c]
mov dword [esi], eax
mov ecx, dword [0x58f614]
mov dword [esi + 4], ecx
lea ebx, [esi + 0x10]
push edi
mov ecx, ebx
mov byte [esp + 0x104], 0xb
call fcn.004374c0
mov dword [ebx], 0x547f50
mov edx, dword [0x58f614]
mov ebx, dword [esp + 0x14]
mov dword [esi + 0x30], edx
mov eax, dword [0x58f614]
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 0x4782e3
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.00514423
lea ecx, [edi + 4]
push ecx
lea ecx, [esi + 4]
call fcn.00514423
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.00514423
add edi, 0x34
lea ecx, [esi + 0x34]
push edi
call fcn.00514423
mov edx, dword [esp + 0xa4]
push esi
push edx
lea ecx, [esp + 0xa4]
call fcn.00513650
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
dec eax
mov ecx, dword [ecx + 0x48]
push eax
call fcn.004d0400
push eax
lea ecx, [esp + 0x78]
call fcn.00470df0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
cmp eax, 7
jge 0x47836e
mov eax, 7
cmp ebx, 7
jl 0x4783a1
mov ecx, dword [esp + 0x44]
test ecx, ecx
jne 0x47838d
sub ebx, eax
add eax, 0xfffffff9
inc ebx
add edx, 0x10
push ebx
push eax
push edx
lea ecx, [esp + 0x5c]
jmp 0x47839c
sub ebx, eax
add eax, 0xfffffff9
inc ebx
add edx, 0x10
push ebx
push eax
push edx
add ecx, 0x10
call fcn.004c39d0
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
cmp eax, esi
jl 0x47847f
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
jmp 0x478201
cmp ebp, 1
jge 0x4783c8
mov ebp, 1
cmp ecx, ebp
jl 0x478464
mov ecx, dword [ebx + 0x44]
lea edx, [ebp - 1]
push edx
call fcn.004cfad0
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x478464
mov eax, dword [esp + 0x20]
xor edi, edi
sub eax, ebp
inc eax
test eax, eax
mov dword [esp + 0x14], eax
jle 0x478464
mov ebp, dword [esp + 0x40]
mov ecx, dword [ebx + 0x44]
lea eax, [esp + 0x18]
push eax
call fcn.004cfb20
test eax, eax
je 0x47844b
test edi, edi
je 0x47842c
mov eax, dword [esp + 0x18]
lea ecx, [edi + ebp]
cmp eax, ecx
jne 0x47841d
inc edi
jmp 0x478435
mov edx, dword [ebx + 0x44]
push edi
push ebp
push edx
lea ecx, [esp + 0x5c]
call fcn.004c39d0
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 0x4783fa
test edi, edi
mov dword [esp + 0x40], ebp
jle 0x478464
mov ecx, dword [ebx + 0x44]
mov eax, ebp
push edi
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.004c39d0
cmp dword [esp + 0x20], esi
jl 0x47847f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4781cc
mov ebx, dword [esp + 0x108]
lea edx, [esp + 0x50]
push 0
push edx
mov ecx, ebx
call fcn.0044f990
mov eax, dword [esp + 0xa4]
xor esi, esi
lea edi, [eax - 1]
test edi, edi
jl 0x478687
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 0x3c]
sub eax, 2
je 0x478664
sub eax, 2
jne 0x47867e
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.0044fc00
jmp 0x47867e
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.004d03c0
test eax, eax
je 0x478464
mov edx, dword [esp + 0x30]
test byte [edx + 8], 2
jne 0x4784e2
mov ecx, dword [edx + 0x10]
lea eax, [ecx + esi + 3]
cmp ebp, eax
mov dword [esp + 0x38], eax
jge 0x478647
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 0x478539
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x38]
cmp ebx, eax
jl 0x478647
cmp eax, 2
jge 0x47860a
push 0x30
call fcn.005151e5
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
test esi, esi
je 0x4785a5
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x58f614]
mov edi, dword [eax + 0x5c]
mov dword [esi], ecx
mov edx, dword [0x58f614]
mov dword [esi + 4], edx
lea ecx, [esi + 0x14]
mov byte [esp + 0x100], 8
call fcn.00470b30
xor eax, eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], 0x547f50
mov dword [esi + 0x2c], edi
mov dword [esi + 8], eax
jmp 0x4785a7
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.00514423
lea eax, [edi + 4]
lea ecx, [esi + 4]
push eax
call fcn.00514423
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.00513650
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
dec eax
mov ecx, dword [ecx + 0x40]
push eax
call fcn.004d0400
push eax
lea ecx, [esp + 0x78]
call fcn.00470df0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
cmp eax, 3
jge 0x478614
mov eax, 3
cmp ebx, 3
jl 0x478647
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x478633
sub ebx, eax
add eax, 0xfffffffd
inc ebx
add edx, 0xc
push ebx
push eax
push edx
lea ecx, [esp + 0x5c]
jmp 0x478642
sub ebx, eax
add eax, 0xfffffffd
inc ebx
add edx, 0xc
push ebx
push eax
push edx
add ecx, 0xc
call fcn.004c39d0
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
cmp eax, esi
jl 0x47847f
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
jmp 0x4784e2
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.0044fb50
inc esi
cmp esi, edi
jle 0x4784ac
mov esi, 0x5477b0
lea ecx, [esp + 0x74]
mov byte [esp + 0x100], 1
mov dword [esp + 0x74], esi
call fcn.00470d30
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], 0
call fcn.005133b2
mov dword [esp + 0x50], 0x5477b4
mov dword [esp + 0x100], 0xc
mov dword [esp + 0x54], 0
jmp 0x4790d3
lea ecx, [esp + 0x88]
call fcn.0051337f
lea ecx, [esp + 0xb0]
mov byte [esp + 0x100], 0xd
call fcn.0051337f
lea ecx, [esp + 0xc4]
mov byte [esp + 0x100], 0xe
call fcn.00470b30
mov dword [esp + 0xc4], edi
xor edi, edi
push 0x14
push edi
lea ecx, [esp + 0x90]
mov byte [esp + 0x108], 0xf
call fcn.005133df
push 0x14
push edi
lea ecx, [esp + 0xb8]
call fcn.005133df
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 0x478752
mov dword [esp + 0x70], edi
jmp 0x478759
mov eax, dword [eax + 0x34]
mov dword [esp + 0x70], eax
cmp esi, edi
mov dword [esp + 0x3c], edi
jle 0x478da7
jmp 0x47876b
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 0x4787db
mov ecx, dword [ebx + 0x54]
call fcn.004cc300
mov edi, eax
cmp esi, edi
jge 0x4787d3
cmp esi, 3
jge 0x4787a7
mov esi, 3
lea eax, [edi - 1]
lea ecx, [esi - 3]
cmp eax, ebp
jl 0x4787b3
mov eax, ebp
add eax, 0xfffffffd
mov dword [esp + 0x10], edi
cmp eax, ecx
jl 0x4787d3
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.004c39d0
cmp ebp, edi
jl 0x478da7
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], 0
test eax, eax
jle 0x478d92
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.004d0460
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0xc]
shr eax, 4
and eax, 1
mov dword [esp + 0x40], eax
je 0x478835
mov eax, 2
jmp 0x47883e
call fcn.004cb3b0
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
lea edx, [eax + edi]
cmp ebx, edx
mov dword [esp + 0x38], edx
jge 0x478c46
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 0x478866
mov ebx, edx
mov edx, dword [esp + 0x38]
cmp ebx, ebp
mov dword [esp + 0x10], edx
jl 0x478c46
mov eax, dword [esp + 0x40]
test eax, eax
je 0x478a7f
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.005151e5
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
test esi, esi
je 0x478983
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x58f614]
mov edi, dword [ecx + 0x5c]
mov dword [esi], edx
mov eax, dword [0x58f614]
mov dword [esi + 4], eax
lea ecx, [esi + 0x1c]
mov byte [esp + 0x100], 0x12
call fcn.00470b30
mov dword [esi + 0x30], edi
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0x547f50
lea ebp, [esi + 0x34]
push edi
mov ecx, ebp
mov byte [esp + 0x104], 0x13
call fcn.004374c0
mov dword [ebp], 0x547f50
lea ecx, [esi + 0x54]
mov byte [esp + 0x100], 0x14
call fcn.00470b30
lea ecx, [esi + 0x68]
mov byte [esp + 0x100], 0x15
call fcn.00470b30
lea ecx, [esi + 0x7c]
mov byte [esp + 0x100], 0x16
call fcn.00470b30
lea ecx, [esi + 0x90]
mov byte [esp + 0x100], 0x17
call fcn.00470b30
lea ecx, [esi + 0xa4]
mov byte [esp + 0x100], 0x18
call fcn.00470b30
lea ecx, [esi + 0xb8]
mov byte [esp + 0x100], 0x19
call fcn.00470b30
xor eax, eax
mov dword [esi + 0xcc], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 8], eax
jmp 0x478985
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.00513650
mov eax, dword [ebx]
lea ecx, [esp + 0xc4]
push eax
call fcn.00470df0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xb8]
push edx
push eax
lea ecx, [esp + 0xb8]
call fcn.00513650
mov edi, dword [esp + 0x18]
mov ecx, esi
push edi
call fcn.00514423
lea ecx, [edi + 4]
push ecx
lea ecx, [esi + 4]
call fcn.00514423
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.004c3ae0
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x14]
add eax, 0x14
push eax
call fcn.004c3ae0
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004cae90
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x478a33
inc dword [esp + 0x2c]
test al, 0x20
je 0x478a46
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
je 0x478c3e
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x4c], eax
jge 0x478c3e
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.004d0460
jmp 0x47889a
cmp ebp, 2
jge 0x478bf6
push 0xd0
call fcn.005151e5
mov esi, eax
add esp, 4
mov dword [esp + 0x4c], esi
test esi, esi
je 0x478b79
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x58f614]
mov edi, dword [eax + 0x5c]
mov dword [esi], ecx
mov edx, dword [0x58f614]
mov dword [esi + 4], edx
lea ecx, [esi + 0x1c]
mov byte [esp + 0x100], 0x1c
call fcn.00470b30
mov dword [esi + 0x30], edi
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0x547f50
lea ecx, [esi + 0x3c]
mov byte [esp + 0x100], 0x1d
call fcn.00470b30
mov dword [esi + 0x50], edi
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0x547f50
lea ecx, [esi + 0x54]
mov byte [esp + 0x100], 0x1e
call fcn.00470b30
lea ecx, [esi + 0x68]
mov byte [esp + 0x100], 0x1f
call fcn.00470b30
lea ecx, [esi + 0x7c]
mov byte [esp + 0x100], 0x20
call fcn.00470b30
lea ecx, [esi + 0x90]
mov byte [esp + 0x100], 0x21
call fcn.00470b30
lea ecx, [esi + 0xa4]
mov byte [esp + 0x100], 0x22
call fcn.00470b30
lea ecx, [esi + 0xb8]
mov byte [esp + 0x100], 0x23
call fcn.00470b30
xor eax, eax
mov dword [esi + 0xcc], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 8], eax
jmp 0x478b7b
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.00514423
lea eax, [edi + 4]
lea ecx, [esi + 4]
push eax
call fcn.00514423
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.00513650
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0xc4]
mov eax, dword [edx]
push eax
call fcn.00470df0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xb8]
push eax
push ecx
lea ecx, [esp + 0xb8]
call fcn.00513650
mov ecx, dword [esp + 0x28]
cmp ebp, 3
jge 0x478c00
mov ebp, 3
cmp ebx, 3
jl 0x478c46
test esi, esi
jne 0x478c24
sub ebx, ebp
add ebp, 0xfffffffd
inc ebx
add ecx, 0x34
push ebx
push ebp
push ecx
lea ecx, [esp + 0x5c]
call fcn.004c39d0
mov ecx, dword [esp + 0x28]
jmp 0x478c46
sub ebx, ebp
add ebp, 0xfffffffd
inc ebx
add ecx, 0x34
push ebx
push ebp
push ecx
lea ecx, [esi + 0x34]
call fcn.004c39d0
mov ecx, dword [esp + 0x28]
jmp 0x478c46
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
cmp edx, eax
jl 0x478d92
mov edx, dword [esp + 0x40]
test edx, edx
je 0x478c62
xor ebp, ebp
jmp 0x478c65
mov ebp, dword [ecx + 0x18]
test ebp, ebp
jle 0x478cd5
mov edx, dword [esp + 0x10]
inc ebp
lea ebx, [eax + ebp]
cmp edx, ebx
jge 0x478cc7
mov edi, dword [esp + 0x20]
sub edx, eax
sub edi, eax
lea eax, [ebp - 1]
cmp eax, edi
jl 0x478c86
mov eax, edi
cmp eax, edx
mov dword [esp + 0x10], ebx
jl 0x478cc7
cmp edx, 1
jge 0x478c98
mov edx, 1
cmp eax, 1
jl 0x478cc7
test esi, esi
jne 0x478cb1
sub eax, edx
inc eax
dec edx
push eax
add ecx, 0x14
push edx
push ecx
lea ecx, [esp + 0x5c]
jmp 0x478cbe
sub eax, edx
inc eax
dec edx
push eax
add ecx, 0x14
push edx
push ecx
lea ecx, [esi + 0x14]
call fcn.004c39d0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, ebx
cmp edx, eax
jl 0x478d92
mov edx, dword [esp + 0x40]
test edx, edx
je 0x478ce1
xor ebx, ebx
jmp 0x478ce7
mov ebx, dword [ecx + 0x64]
shr ebx, 2
mov edx, dword [esp + 0x10]
lea edi, [ebx + eax]
cmp edx, edi
jge 0x478d6a
sub edx, eax
mov ebp, edx
mov edx, dword [esp + 0x20]
sub edx, eax
lea eax, [ebx - 1]
cmp eax, edx
jge 0x478d05
mov edx, eax
cmp edx, ebp
mov dword [esp + 0x10], edi
jl 0x478d6a
lea eax, [esp + 0x88]
push eax
push esi
push edx
push ebp
push ecx
mov ecx, dword [esp + 0x30]
call fcn.004a5d40
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0x90]
shr ecx, 2
sub eax, ecx
test eax, eax
jle 0x478d6a
mov ebx, dword [esp + 0x44]
mov esi, eax
mov eax, dword [ebx]
lea ecx, [esp + 0xc4]
push eax
call fcn.00470df0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xb8]
push edx
push eax
lea ecx, [esp + 0xb8]
call fcn.00513650
dec esi
jne 0x478d3f
cmp dword [esp + 0x20], edi
jl 0x478d92
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [edx + 0x54]
call fcn.004cc1f0
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x4787ef
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x478767
mov ebx, dword [esp + 0x108]
lea eax, [esp + 0x50]
push 1
push eax
mov ecx, ebx
call fcn.0044f990
mov ecx, dword [esp + 0x90]
xor esi, esi
lea edi, [ecx - 1]
test edi, edi
jl 0x478e14
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 0x478df1
push 0
push 0
call fcn.004ca5f0
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.0044fcd0
inc esi
cmp esi, edi
jle 0x478dcc
mov esi, 0x5477b0
lea ecx, [esp + 0xc4]
mov byte [esp + 0x100], 0xe
mov dword [esp + 0xc4], esi
call fcn.00470d30
lea ecx, [esp + 0xb0]
mov byte [esp + 0x100], 0xd
call fcn.005133b2
lea ecx, [esp + 0x88]
mov byte [esp + 0x100], 2
call fcn.005133b2
lea ecx, [esp + 0x74]
mov byte [esp + 0x100], 1
mov dword [esp + 0x74], esi
call fcn.00470d30
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], 0
call fcn.005133b2
mov dword [esp + 0x50], 0x5477b4
mov dword [esp + 0x100], 0x24
mov dword [esp + 0x54], 0
jmp 0x4790d3
mov edi, dword [ebx + 0x5c]
lea ecx, [esp + 0xe0]
call fcn.00470b30
mov dword [esp + 0xf4], edi
mov dword [esp + 0xdc], 0
mov dword [esp + 0xd8], 0x547f30
mov ecx, dword [ebx + 0x50]
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x104], 3
call fcn.004cfcd0
test esi, esi
mov dword [esp + 0x48], eax
jle 0x479008
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 0x478f13
mov ecx, 1
cmp eax, ecx
jl 0x478ff2
sub eax, ecx
inc eax
dec ecx
push ecx
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.00496a60
mov esi, eax
cmp esi, 0xffffffff
jne 0x478f34
xor esi, esi
mov eax, dword [esp + 0x48]
xor edi, edi
cmp esi, eax
jge 0x478ff2
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x478fd8
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + esi*4]
push edx
call fcn.004cfb80
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 0x478fcb
mov eax, dword [ebx + 0x3c]
cmp eax, 6
jne 0x478f7d
cmp ebp, 0x10000000
je 0x478f97
cmp eax, 7
jne 0x478f8a
cmp ebp, 0x20000000
je 0x478f97
cmp eax, 8
jne 0x478fcb
cmp ebp, 0x30000000
jne 0x478fcb
test edi, edi
je 0x478fbe
mov ecx, dword [esp + 0x24]
add ecx, edi
cmp ecx, esi
jne 0x478fa8
inc edi
jmp 0x478fc7
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0x50]
push edi
push edx
push eax
lea ecx, [esp + 0xe4]
call fcn.004c39d0
mov dword [esp + 0x24], esi
mov edi, 1
dec dword [esp + 0x14]
mov eax, dword [esp + 0x48]
inc esi
cmp esi, eax
jl 0x478f42
test edi, edi
jle 0x478ff2
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0x50]
push edi
push ecx
push edx
lea ecx, [esp + 0xe4]
call fcn.004c39d0
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x3c], eax
jne 0x478ef6
mov ebp, dword [esp + 0x108]
mov eax, dword [esp + 0xdc]
test eax, eax
mov edi, eax
jle 0x47904f
xor esi, esi
mov eax, esi
lea ecx, [esp + 0xd8]
push eax
inc esi
call fcn.004cfca0
test eax, eax
je 0x479039
push eax
lea ecx, [ebp + 0x260]
call fcn.004cffa0
jmp 0x479017
push edi
lea eax, [esp + 0xdc]
push 0
push eax
lea ecx, [ebp + 0x260]
call fcn.004c39d0
mov edi, 0x5477b4
mov dword [esp + 0xd8], edi
xor ebx, ebx
lea ecx, [esp + 0xe0]
mov byte [esp + 0x100], 4
mov dword [esp + 0xdc], ebx
call fcn.00470d30
mov esi, 0x5477b0
lea ecx, [esp + 0xe0]
mov byte [esp + 0x100], 2
mov dword [esp + 0xe0], esi
call fcn.00470d30
lea ecx, [esp + 0x74]
mov byte [esp + 0x100], 1
mov dword [esp + 0x74], esi
call fcn.00470d30
lea ecx, [esp + 0x9c]
mov byte [esp + 0x100], bl
call fcn.005133b2
mov dword [esp + 0x50], edi
mov dword [esp + 0x100], 5
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x58]
call fcn.00470d30
lea ecx, [esp + 0x58]
mov dword [esp + 0x100], 0xffffffff
mov dword [esp + 0x58], esi
call fcn.00470d30
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf4
ret 4