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

Disassembly:
push 0xffffffffffffffff
push 0x4c61f5
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53856c]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x104]
mov ebp, dword [esp + 0x100]
mov eax, dword [ebp + 0x70]
sub eax, dword [ebp + 0x6c]
xor esi, esi
sar eax, 2
test eax, eax
jbe 0x478821
lea ebx, [ebx]
mov ecx, dword [ebx + 0x68]
sub ecx, dword [ebx + 0x64]
sar ecx, 2
cmp esi, ecx
jb 0x4787f2
call fcn.004ac063
mov ecx, dword [ebp + 0x70]
sub ecx, dword [ebp + 0x6c]
mov edx, dword [ebx + 0x64]
mov eax, dword [edx + esi*4]
mov edi, dword [eax + 4]
sar ecx, 2
cmp esi, ecx
jb 0x47880d
call fcn.004ac063
mov edx, dword [ebp + 0x6c]
mov dword [edx + esi*4], edi
mov eax, dword [ebp + 0x70]
sub eax, dword [ebp + 0x6c]
inc esi
sar eax, 2
cmp esi, eax
jb 0x4787e0
mov ecx, dword [ebp + 0xb8]
sub ecx, dword [ebp + 0xb4]
xor esi, esi
sar ecx, 2
test ecx, ecx
jbe 0x478893
jmp 0x478840
mov edx, dword [ebx + 0x80]
sub edx, dword [ebx + 0x7c]
sar edx, 2
cmp esi, edx
jb 0x478855
call fcn.004ac063
mov edx, dword [ebp + 0xb8]
sub edx, dword [ebp + 0xb4]
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax + esi*4]
mov edi, dword [ecx + 4]
sar edx, 2
cmp esi, edx
jb 0x478876
call fcn.004ac063
mov eax, dword [ebp + 0xb4]
mov dword [eax + esi*4], edi
mov ecx, dword [ebp + 0xb8]
sub ecx, dword [ebp + 0xb4]
inc esi
sar ecx, 2
cmp esi, ecx
jb 0x478840
mov edx, dword [ebp + 0x88]
sub edx, dword [ebp + 0x84]
xor esi, esi
sar edx, 2
test edx, edx
jbe 0x478909
jmp 0x4788b0
mov eax, dword [ebx + 0x98]
sub eax, dword [ebx + 0x94]
sar eax, 2
cmp esi, eax
jb 0x4788c8
call fcn.004ac063
mov eax, dword [ebp + 0x88]
sub eax, dword [ebp + 0x84]
mov ecx, dword [ebx + 0x94]
mov edx, dword [ecx + esi*4]
mov edi, dword [edx + 4]
sar eax, 2
cmp esi, eax
jb 0x4788ec
call fcn.004ac063
mov ecx, dword [ebp + 0x84]
mov dword [ecx + esi*4], edi
mov edx, dword [ebp + 0x88]
sub edx, dword [ebp + 0x84]
inc esi
sar edx, 2
cmp esi, edx
jb 0x4788b0
xor esi, esi
cmp dword [ebp + 0xf8], esi
mov dword [esp + 0x38], esi
jg 0x478947
mov al, 1
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8
ret 8
mov ebx, dword [esp + 0x104]
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x478967
call fcn.004ac063
mov eax, dword [ebp + 0x3c]
mov edi, esi
imul edi, edi, 0x2c
add eax, edi
mov eax, dword [eax]
and eax, 0xffffff8f
push eax
push ebx
mov eax, esi
mov dword [esp + 0x2c], edi
call fcn.0048a300
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov dword [esp + 0xc8], eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x4789aa
call fcn.004ac063
mov edx, dword [ebp + 0x3c]
mov ebx, dword [edi + edx + 0x14]
sub ebx, dword [edi + edx + 0x10]
mov ecx, dword [ebp + 0x40]
lea eax, [edi + edx + 4]
sub ecx, edx
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
sar ebx, 2
add eax, edx
mov dword [esp + 0xbc], ebx
cmp esi, eax
jb 0x4789e2
call fcn.004ac063
mov ecx, dword [ebp + 0x3c]
cmp dword [ecx + edi + 0x1c], 0
jl 0x478a36
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x478a0c
call fcn.004ac063
mov ecx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x3c]
sub ecx, dword [ebp + 0x54]
add eax, edi
mov edi, dword [eax + 0x1c]
sar ecx, 4
cmp edi, ecx
jb 0x478a26
call fcn.004ac063
mov edx, dword [ebp + 0x54]
shl edi, 4
sub ebx, dword [edi + edx]
mov dword [esp + 0xbc], ebx
mov eax, dword [ebp + 0x124]
sub eax, dword [ebp + 0x120]
sar eax, 2
cmp esi, eax
jae 0x47a239
mov ecx, dword [ebp + 0x124]
sub ecx, dword [ebp + 0x120]
sar ecx, 2
cmp esi, ecx
jb 0x478a65
call fcn.004ac063
mov edx, dword [ebp + 0x120]
cmp dword [edx + esi*4], 0
je 0x47a239
xor edi, edi
mov dword [esp + 0xb8], edi
mov edi, edi
mov eax, dword [ebp + 0x124]
sub eax, dword [ebp + 0x120]
sar eax, 2
cmp esi, eax
jb 0x478a98
call fcn.004ac063
mov ecx, dword [ebp + 0x120]
mov edx, dword [ecx + esi*4]
cmp edi, dword [edx + 4]
jge 0x47a08b
mov eax, dword [esp + 0xc8]
cmp dword [eax + edi*8 + 4], 0
mov ecx, dword [eax + edi*8]
lea eax, [eax + edi*8 + 4]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc0], 0
mov dword [esp + 0x2c], eax
jle 0x47a078
lea esp, [esp]
push 4
call fcn.004aac60
xor edi, edi
add esp, 4
cmp eax, edi
je 0x478af8
lea edx, [esp + 0x6c]
mov dword [eax], edx
jmp 0x478afa
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
push 4
mov dword [esp + 0xfc], 1
call fcn.004aac60
add esp, 4
cmp eax, edi
je 0x478b31
lea ecx, [esp + 0x84]
mov dword [eax], ecx
jmp 0x478b33
xor eax, eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
push 4
mov byte [esp + 0xfc], 3
call fcn.004aac60
add esp, 4
cmp eax, edi
je 0x478b70
lea edx, [esp + 0x9c]
mov dword [eax], edx
jmp 0x478b72
xor eax, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
push 4
mov dword [esp + 0xfc], 5
call fcn.004aac60
add esp, 4
cmp eax, edi
je 0x478baf
lea ecx, [esp + 0x4c]
mov dword [eax], ecx
jmp 0x478bb1
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x104]
push edx
push eax
mov eax, esi
mov byte [esp + 0x100], 7
call fcn.0048a3e0
mov ebx, eax
mov dword [esp + 0x34], ebx
cmp ebx, edi
je 0x47a0a1
xor edi, edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x40], edi
jmp 0x478c10
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x478c30
call fcn.004ac063
mov edx, dword [ebp + 0x3c]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx + eax + 0x14]
sub ecx, dword [edx + eax + 0x10]
lea eax, [edx + eax + 4]
sar ecx, 2
cmp edi, ecx
jae 0x4798c3
test edi, edi
jne 0x479190
mov ecx, dword [ebp + 0x40]
sub ecx, edx
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x478c75
call fcn.004ac063
mov edi, dword [ebp + 0x3c]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0x10]
sar ecx, 2
test ecx, ecx
ja 0x478c8e
call fcn.004ac063
mov edx, dword [edi + 0x10]
mov eax, dword [edx]
mov dword [esp + 0x68], eax
test eax, eax
je 0x478ef2
cmp eax, 0xa
je 0x478ef2
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x478cc8
call fcn.004ac063
mov ecx, dword [ebp + 0x3c]
mov edi, dword [esp + 0x24]
mov edx, dword [edi + ecx]
and edx, 0xffffff8f
cmp edx, 4
jne 0x478d04
mov eax, dword [esp + 0xb8]
cdq
push edx
push eax
mov ecx, ebp
call fcn.0047bad0
inc dword [esp + 0x40]
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x64], eax
jmp 0x478c10
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x478d24
call fcn.004ac063
mov esi, dword [ebp + 0x3c]
mov ecx, dword [esi + edi + 0x14]
sub ecx, dword [esi + edi + 0x10]
add esi, edi
sar ecx, 2
test ecx, ecx
ja 0x478d3d
call fcn.004ac063
mov eax, dword [esi + 0x10]
mov edx, dword [eax]
lea esi, [esp + 0x64]
lea edi, [esp + 0x34]
mov ecx, ebp
call fcn.0047c070
test al, al
jne 0x4798ae
mov byte [esp + 0xf8], 0x16
mov eax, dword [esp + 0x58]
xor edi, edi
cmp eax, edi
je 0x478d74
push eax
call fcn.004aac3a
add esp, 4
mov byte [esp + 0xf8], 5
mov eax, dword [esp + 0x4c]
push eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
call fcn.004aac3a
add esp, 4
mov dword [esp + 0xf8], 0x17
lea ecx, [esp + 0x9c]
mov dword [esp + 0x2c], ecx
mov byte [esp + 0xf8], 0x19
mov eax, dword [esp + 0xa8]
cmp eax, edi
je 0x478dc7
push eax
call fcn.004aac3a
add esp, 4
mov byte [esp + 0xf8], 0x18
mov edx, dword [esp + 0x9c]
push edx
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
call fcn.004aac3a
lea eax, [esp + 0x88]
add esp, 4
mov dword [esp + 0x3c], eax
mov bl, 0x1a
mov byte [esp + 0xf8], bl
mov esi, dword [esp + 0x90]
cmp esi, edi
je 0x478e70
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x2c], esi
cmp esi, ebp
je 0x478e67
mov byte [esp + 0xf8], 0x1b
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x478e3a
push eax
call fcn.004aac3a
add esp, 4
mov byte [esp + 0xf8], bl
mov eax, dword [esi]
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.004aac3a
add esi, 0x18
add esp, 4
mov dword [esp + 0x2c], esi
cmp esi, ebp
jne 0x478e22
mov esi, dword [esp + 0x90]
push esi
call fcn.004aac3a
add esp, 4
mov byte [esp + 0xf8], 0x17
mov ecx, dword [esp + 0x84]
push ecx
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
call fcn.004aac3a
lea edx, [esp + 0x70]
add esp, 4
mov dword [esp + 0x2c], edx
mov dword [esp + 0xf8], 0x1c
mov eax, dword [esp + 0x78]
cmp eax, edi
je 0x478ec1
push eax
call fcn.004aac3a
add esp, 4
mov dword [esp + 0xf8], 0xffffffff
mov eax, dword [esp + 0x6c]
push eax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
call fcn.004aac3a
add esp, 4
xor al, al
jmp 0x478919
mov edx, dword [ebx]
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov dword [esp + 0x28], edx
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add ebx, 4
add eax, edx
mov dword [esp + 0x34], ebx
cmp esi, eax
jb 0x478f1f
call fcn.004ac063
mov eax, dword [ebp + 0x3c]
add eax, dword [esp + 0x24]
cmp dword [esp + 0x28], 0
mov edi, dword [eax + 0x20]
jge 0x478f34
xor eax, eax
jmp 0x478f99
test edi, edi
jl 0x478f89
mov ebx, dword [esp + 0x104]
mov ecx, dword [ebx + 0x98]
sub ecx, dword [ebx + 0x94]
sar ecx, 2
cmp edi, ecx
jae 0x478f89
mov edx, dword [ebx + 0x98]
sub edx, dword [ebx + 0x94]
sar edx, 2
cmp edi, edx
jb 0x478f6a
call fcn.004ac063
mov eax, dword [ebx + 0x94]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx]
test eax, eax
jl 0x478f89
mov edx, dword [ebx + 8]
add eax, edx
mov edx, dword [ebx + 0xc]
cmp eax, edx
jae 0x478f89
test eax, eax
jne 0x478f8d
xor eax, eax
jmp 0x478f99
mov ecx, dword [esp + 0x28]
add ecx, eax
cmp ecx, edx
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x478fbd
call fcn.004ac063
mov esi, dword [ebp + 0x3c]
add esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
sar ecx, 2
test ecx, ecx
ja 0x478fd6
call fcn.004ac063
mov eax, dword [esi + 0x10]
mov edx, dword [eax]
lea esi, [esp + 0x64]
lea edi, [esp + 0x28]
mov ecx, ebp
call fcn.0047c070
test al, al
jne 0x4798ae
mov byte [esp + 0xf8], 0xf
mov eax, dword [esp + 0x58]
xor edi, edi
cmp eax, edi
je 0x47900d
push eax
call fcn.004aac3a
add esp, 4
mov byte [esp + 0xf8], 5
mov ecx, dword [esp + 0x4c]
push ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
call fcn.004aac3a
add esp, 4
mov dword [esp + 0xf8], 0x10
lea edx, [esp + 0x9c]
mov dword [esp + 0x2c], edx
mov byte [esp + 0xf8], 0x12
mov eax, dword [esp + 0xa8]
cmp eax, edi
je 0x479060
push eax
call fcn.004aac3a
add esp, 4
mov byte [esp + 0xf8], 0x11
mov eax, dword [esp + 0x9c]
push eax
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
call fcn.004aac3a
lea ecx, [esp + 0x88]
add esp, 4
mov dword [esp + 0x3c], ecx
mov bl, 0x13
mov byte [esp + 0xf8], bl
mov esi, dword [esp + 0x90]
cmp esi, edi
je 0x47910e
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x2c], esi
cmp esi, ebp
je 0x479105
jmp 0x4790c0
mov byte [esp + 0xf8], 0x14
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x4790d8
push eax
call fcn.004aac3a
add esp, 4
mov byte [esp + 0xf8], bl
mov eax, dword [esi]
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.004aac3a
add esi, 0x18
add esp, 4
mov dword [esp + 0x2c], esi
cmp esi, ebp
jne 0x4790c0
mov esi, dword [esp + 0x90]
push esi
call fcn.004aac3a
add esp, 4
mov byte [esp + 0xf8], 0x10
mov edx, dword [esp + 0x84]
push edx
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
call fcn.004aac3a
lea eax, [esp + 0x70]
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0xf8], 0x15
mov eax, dword [esp + 0x78]
cmp eax, edi
je 0x47915f
push eax
call fcn.004aac3a
add esp, 4
mov dword [esp + 0xf8], 0xffffffff
mov ecx, dword [esp + 0x6c]
push ecx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
call fcn.004aac3a
add esp, 4
xor al, al
jmp 0x478919
mov eax, dword [esp + 0xbc]
cmp edi, eax
jge 0x479560
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4791bf
call fcn.004ac063
mov edi, dword [ebp + 0x3c]
add edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x40]
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0x10]
sar ecx, 2
cmp ebx, ecx
jb 0x4791dc
call fcn.004ac063
mov edi, dword [edi + 0x10]
mov ecx, dword [esp + 0xa8]
lea eax, [ebx*4]
add edi, eax
mov dword [esp + 0x30], eax
test ecx, ecx
jne 0x4791fb
xor eax, eax
jmp 0x479207
mov eax, dword [esp + 0xb0]
sub eax, ecx
sar eax, 2
mov ecx, dword [esp + 0xac]
mov edx, ecx
sub edx, dword [esp + 0xa8]
sar edx, 2
cmp edx, eax
jae 0x479254
mov edx, dword [esp + 0x2c]
mov byte [esp + 0xcc], 0
mov eax, dword [esp + 0xcc]
push eax
push edx
mov edx, edi
mov eax, 1
mov ebx, ecx
call fcn.0045da50
add esp, 8
add ebx, 4
mov dword [esp + 0xac], ebx
mov ebx, dword [esp + 0x40]
jmp 0x479288
mov dword [esp + 0x28], ecx
cmp dword [esp + 0xa8], ecx
jbe 0x479266
call fcn.004ac063
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x9c]
push ecx
push eax
push edi
lea edx, [esp + 0xf4]
push edx
lea eax, [esp + 0xac]
call fcn.00484d30
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4792a8
call fcn.004ac063
mov edi, dword [ebp + 0x3c]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0x10]
sar ecx, 2
cmp ebx, ecx
jb 0x4792c1
call fcn.004ac063
mov edx, dword [edi + 0x10]
mov eax, dword [esp + 0x30]
cmp dword [eax + edx], 0
je 0x4793cc
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x4792f2
call fcn.004ac063
mov edi, dword [ebp + 0x3c]
add edi, dword [esp + 0x24]
mov edx, dword [edi + 0x14]
sub edx, dword [edi + 0x10]
sar edx, 2
cmp ebx, edx
jb 0x47930b
call fcn.004ac063
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x30]
cmp dword [ecx + eax], 0xa
je 0x4793cc
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x47933c
call fcn.004ac063
mov edi, dword [ebp + 0x3c]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0x10]
sar ecx, 2
cmp ebx, ecx
jb 0x479355
call fcn.004ac063
mov edx, dword [edi + 0x10]
mov eax, dword [esp + 0x30]
cmp dword [eax + edx], 0xb
je 0x4793cc
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x28], 0
cmp esi, ecx
jb 0x47938a
call fcn.004ac063
mov esi, dword [ebp + 0x3c]
add esi, dword [esp + 0x24]
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0x10]
sar edx, 2
cmp ebx, edx
jb 0x4793a3
call fcn.004ac063
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x30]
lea esi, [esp + 0x28]
mov edx, dword [eax]
lea edi, [esp + 0x34]
mov ecx, ebp
call fcn.0047c070
test al, al
je 0x479b29
lea edi, [esp + 0x6c]
jmp 0x4798a5
mov eax, dword [esp + 0x34]
mov ebx, dword [eax]
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
add eax, 4
mov dword [esp + 0x34], eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x28], 0
cmp esi, eax
jb 0x479401
call fcn.004ac063
mov eax, dword [ebp + 0x3c]
add eax, dword [esp + 0x24]
mov edi, dword [eax + 0x24]
test ebx, ebx
jge 0x479413
xor eax, eax
jmp 0x47947c
test edi, edi
jl 0x47946f
mov ecx, dword [esp + 0x104]
mov edx, dword [ecx + 0x98]
sub edx, dword [ecx + 0x94]
sar edx, 2
cmp edi, edx
jae 0x47946f
mov eax, dword [ecx + 0x98]
sub eax, dword [ecx + 0x94]
sar eax, 2
cmp edi, eax
jb 0x479450
call fcn.004ac063
mov ecx, dword [esp + 0x104]
mov edx, dword [ecx + 0x94]
mov eax, dword [edx + edi*4]
mov eax, dword [eax]
test eax, eax
jl 0x47946f
mov edx, dword [ecx + 8]
add eax, edx
mov edx, dword [ecx + 0xc]
cmp eax, edx
jae 0x47946f
test eax, eax
jne 0x479473
xor eax, eax
jmp 0x47947c
lea ecx, [eax + ebx]
cmp ecx, edx
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov dword [esp + 0x3c], eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4794a0
call fcn.004ac063
mov esi, dword [ebp + 0x3c]
add esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
sar ecx, 2
cmp dword [esp + 0x40], ecx
jb 0x4794bb
call fcn.004ac063
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x30]
lea esi, [esp + 0x28]
mov edx, dword [eax]
lea edi, [esp + 0x3c]
mov ecx, ebp
call fcn.0047c070
test al, al
je 0x47a240
mov edx, dword [esp + 0x78]
test edx, edx
jne 0x4794e7
xor ecx, ecx
jmp 0x4794f3
mov ecx, dword [esp + 0x80]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x7c]
mov esi, eax
sub esi, edx
sar esi, 2
cmp esi, ecx
jae 0x479524
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [eax], edx
add eax, 4
inc dword [esp + 0x40]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x7c], eax
jmp 0x478c10
mov esi, eax
cmp edx, eax
jbe 0x47952f
call fcn.004ac063
mov eax, dword [esp + 0x6c]
push esi
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xe4]
push ecx
lea eax, [esp + 0x7c]
call fcn.00485830
inc dword [esp + 0x40]
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x40]
jmp 0x478c10
jne 0x4795f0
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x479586
call fcn.004ac063
mov ecx, dword [ebp + 0x3c]
mov edi, dword [esp + 0x24]
mov edx, dword [edi + ecx]
shr edx, 6
test dl, 1
jne 0x4795c6
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4795b8
call fcn.004ac063
mov ecx, dword [ebp + 0x3c]
mov edx, dword [edi + ecx]
shr edx, 5
test dl, 1
je 0x4795d3
mov eax, dword [ebx]
add ebx, 4
mov dword [esp + 0x48], eax
mov dword [esp + 0x34], ebx
mov eax, dword [ebx]
mov ecx, dword [esp + 0x104]
push eax
mov eax, esi
call fcn.0048a4f0
mov dword [esp + 0x44], eax
test eax, eax
je 0x479b29
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x479610
call fcn.004ac063
mov edi, dword [ebp + 0x3c]
add edi, dword [esp + 0x24]
mov edx, dword [edi + 0x14]
sub edx, dword [edi + 0x10]
sar edx, 2
cmp dword [esp + 0x40], edx
jb 0x47962b
call fcn.004ac063
mov esi, dword [esp + 0x40]
mov ebx, dword [edi + 0x10]
lea eax, [esi*4]
add ebx, eax
lea edi, [esp + 0x9c]
call fcn.004841e0
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov ebx, dword [esp + 0x38]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x47966b
call fcn.004ac063
mov edi, dword [ebp + 0x3c]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0x10]
sar ecx, 2
cmp esi, ecx
jb 0x479684
call fcn.004ac063
mov edx, dword [edi + 0x10]
cmp dword [edx + esi*4], 0
je 0x4797b3
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4796b1
call fcn.004ac063
mov edi, dword [ebp + 0x3c]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0x10]
sar ecx, 2
cmp esi, ecx
jb 0x4796ca
call fcn.004ac063
mov edx, dword [edi + 0x10]
cmp dword [edx + esi*4], 0xa
je 0x4797b3
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4796f7
call fcn.004ac063
mov edi, dword [ebp + 0x3c]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0x10]
sar ecx, 2
cmp esi, ecx
jb 0x479710
call fcn.004ac063
mov edx, dword [edi + 0x10]
cmp dword [edx + esi*4], 0xb
je 0x4797b3
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x28], 0
cmp ebx, eax
jb 0x479745
call fcn.004ac063
mov edi, dword [ebp + 0x3c]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0x10]
sar ecx, 2
cmp esi, ecx
jb 0x47975e
call fcn.004ac063
mov eax, dword [esp + 0x40]
mov edi, dword [edi + 0x10]
add eax, eax
add eax, eax
mov edx, dword [edi + eax]
add edi, eax
lea esi, [esp + 0x28]
lea edi, [esp + 0x44]
mov ecx, ebp
call fcn.0047c070
test al, al
jne 0x4798a1
lea ecx, [esp + 0x4c]
push ecx
mov byte [esp + 0xfc], 5
call fcn.00484600
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0xfc], 0xffffffff
call fcn.0047a450
xor al, al
jmp 0x478919
mov eax, dword [esp + 0x44]
mov esi, dword [eax]
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
add eax, 4
mov dword [esp + 0x44], eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], 0
cmp ebx, eax
jb 0x4797ec
call fcn.004ac063
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x58]
add eax, dword [esp + 0x24]
sub ecx, dword [ebp + 0x54]
mov edi, dword [eax + 0x1c]
sar ecx, 4
cmp edi, ecx
jb 0x479808
call fcn.004ac063
shl edi, 4
add edi, dword [ebp + 0x54]
mov edi, dword [edi + 8]
test esi, esi
jge 0x479819
xor eax, eax
jmp 0x47983b
mov esi, dword [esp + 0x104]
call fcn.0048a390
mov ebx, dword [esp + 0x38]
test eax, eax
je 0x47983b
mov edx, dword [esp + 0x3c]
lea ecx, [eax + edx]
cmp ecx, dword [esi + 0xc]
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov dword [esp + 0x3c], eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x47985f
call fcn.004ac063
mov edi, dword [ebp + 0x3c]
add edi, dword [esp + 0x24]
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0x10]
sar ecx, 2
cmp dword [esp + 0x40], ecx
jb 0x47987a
call fcn.004ac063
mov eax, dword [esp + 0x40]
mov edi, dword [edi + 0x10]
add eax, eax
add eax, eax
mov edx, dword [edi + eax]
add edi, eax
lea esi, [esp + 0x28]
lea edi, [esp + 0x3c]
mov ecx, ebp
call fcn.0047c070
test al, al
je 0x47a3a3
lea edi, [esp + 0x4c]
lea ebx, [esp + 0x28]
call fcn.00484250
inc dword [esp + 0x40]
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x40]
jmp 0x478c10
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4798e3
call fcn.004ac063
mov ecx, dword [ebp + 0x3c]
mov edx, dword [esp + 0x24]
cmp dword [edx + ecx + 0x1c], 0
jl 0x479fc9
lea eax, [esp + 0x4c]
push eax
lea edi, [esp + 0x88]
call fcn.00484460
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov esi, dword [esp + 0x38]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x47992a
call fcn.004ac063
mov edx, dword [ebp + 0x3c]
mov edi, dword [esp + 0x24]
mov eax, dword [edi + edx]
shr eax, 6
test al, 1
je 0x479c76
mov eax, 1
cmp dword [esp + 0x48], eax
mov dword [esp + 0x40], eax
jle 0x479fc9
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov ebx, ecx
cmp eax, ecx
jbe 0x47996d
call fcn.004ac063
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x4c]
mov edi, eax
cmp eax, ecx
jbe 0x47997c
call fcn.004ac063
mov ecx, dword [esp + 0x4c]
push ebx
push esi
push edi
push ecx
lea ebx, [esp + 0xe0]
lea esi, [esp + 0x5c]
call fcn.0048ac50
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x30], edx
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4799c7
call fcn.004ac063
mov ecx, dword [ebp + 0x3c]
mov edx, dword [esp + 0x24]
lea eax, [ecx + edx + 4]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
sar ecx, 2
cmp ebx, ecx
jae 0x479c4d
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x479a03
call fcn.004ac063
mov esi, dword [ebp + 0x3c]
add esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
sar ecx, 2
cmp ebx, ecx
jb 0x479a1c
call fcn.004ac063
mov edx, dword [esi + 0x10]
lea eax, [ebx*4]
cmp dword [eax + edx], 0
mov dword [esp + 0x34], eax
je 0x479b57
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x479a54
call fcn.004ac063
mov esi, dword [ebp + 0x3c]
add esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
sar ecx, 2
cmp ebx, ecx
jb 0x479a6d
call fcn.004ac063
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x34]
cmp dword [eax + edx], 0xa
je 0x479b57
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x479a9e
call fcn.004ac063
mov esi, dword [ebp + 0x3c]
add esi, dword [esp + 0x24]
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0x10]
sar edx, 2
cmp ebx, edx
jb 0x479ab7
call fcn.004ac063
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x34]
cmp dword [ecx + eax], 0xb
je 0x479b57
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x28], 0
cmp edi, eax
jb 0x479af0
call fcn.004ac063
mov esi, dword [ebp + 0x3c]
add esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
sar ecx, 2
cmp ebx, ecx
jb 0x479b09
call fcn.004ac063
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x34]
lea esi, [esp + 0x28]
mov edx, dword [eax]
lea edi, [esp + 0x44]
mov ecx, ebp
call fcn.0047c070
test al, al
jne 0x479c37
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0xfc], 5
call fcn.00484600
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0xfc], 0xffffffff
call fcn.0047a450
xor al, al
jmp 0x478919
mov eax, dword [esp + 0x44]
mov ebx, dword [eax]
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
add eax, 4
mov dword [esp + 0x44], eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x28], 0
cmp edi, eax
jb 0x479b8c
call fcn.004ac063
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x58]
add eax, dword [esp + 0x24]
sub ecx, dword [ebp + 0x54]
mov esi, dword [eax + 0x1c]
sar ecx, 4
cmp esi, ecx
jb 0x479ba8
call fcn.004ac063
shl esi, 4
add esi, dword [ebp + 0x54]
mov esi, dword [esi + 8]
test ebx, ebx
jge 0x479bb9
xor eax, eax
jmp 0x479bd8
mov edi, esi
mov esi, dword [esp + 0x104]
call fcn.0048a390
mov edi, dword [esp + 0x38]
test eax, eax
je 0x479bd8
add ebx, eax
cmp ebx, dword [esi + 0xc]
sbb eax, eax
and eax, ebx
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov dword [esp + 0x3c], eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x479bfc
call fcn.004ac063
mov esi, dword [ebp + 0x3c]
add esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
sar ecx, 2
cmp dword [esp + 0x30], ecx
jb 0x479c17
call fcn.004ac063
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x34]
lea esi, [esp + 0x28]
mov edx, dword [eax]
lea edi, [esp + 0x3c]
mov ecx, ebp
call fcn.0047c070
test al, al
je 0x479785
lea ebx, [esp + 0x28]
lea edi, [esp + 0x4c]
call fcn.00484250
inc dword [esp + 0x30]
jmp 0x47999f
lea edx, [esp + 0x4c]
push edx
lea edi, [esp + 0x88]
call fcn.00484460
mov eax, dword [esp + 0x40]
inc eax
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x40], eax
jl 0x479952
jmp 0x479fc9
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x479c96
call fcn.004ac063
mov ecx, dword [ebp + 0x3c]
mov edx, dword [edi + ecx]
shr edx, 5
test dl, 1
jne 0x479fc9
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
test eax, eax
jl 0x479fc9
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x104]
push eax
mov eax, edi
call fcn.0048a4f0
mov dword [esp + 0x44], eax
test eax, eax
je 0x47a3a3
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x3c], ecx
cmp eax, ecx
jbe 0x479cf2
call fcn.004ac063
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x4c]
mov ebx, eax
cmp eax, ecx
jbe 0x479d01
call fcn.004ac063
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
push ecx
push esi
push ebx
push edx
lea ebx, [esp + 0xf0]
lea esi, [esp + 0x5c]
call fcn.0048ac50
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x30], eax
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov ebx, dword [esp + 0x30]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x479d4c
call fcn.004ac063
mov edx, dword [ebp + 0x3c]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx + eax + 0x14]
sub ecx, dword [edx + eax + 0x10]
lea eax, [edx + eax + 4]
sar ecx, 2
cmp ebx, ecx
jae 0x479faa
mov ecx, dword [ebp + 0x40]
sub ecx, edx
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x479d89
call fcn.004ac063
mov esi, dword [ebp + 0x3c]
add esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
sar ecx, 2
cmp ebx, ecx
jb 0x479da2
call fcn.004ac063
mov edx, dword [esi + 0x10]
lea eax, [ebx*4]
cmp dword [eax + edx], 0
mov dword [esp + 0x34], eax
je 0x479eb0
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x479dda
call fcn.004ac063
mov esi, dword [ebp + 0x3c]
add esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
sar ecx, 2
cmp ebx, ecx
jb 0x479df3
call fcn.004ac063
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x34]
cmp dword [eax + edx], 0xa
je 0x479eb0
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x479e24
call fcn.004ac063
mov esi, dword [ebp + 0x3c]
add esi, dword [esp + 0x24]
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0x10]
sar edx, 2
cmp ebx, edx
jb 0x479e3d
call fcn.004ac063
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x34]
cmp dword [ecx + eax], 0xb
je 0x479eb0
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x48], 0
cmp edi, eax
jb 0x479e72
call fcn.004ac063
mov esi, dword [ebp + 0x3c]
add esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
sar ecx, 2
cmp ebx, ecx
jb 0x479e8b
call fcn.004ac063
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x34]
lea esi, [esp + 0x48]
mov edx, dword [eax]
lea edi, [esp + 0x44]
mov ecx, ebp
call fcn.0047c070
test al, al
je 0x479b29
jmp 0x479f90
mov eax, dword [esp + 0x44]
mov ebx, dword [eax]
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
add eax, 4
mov dword [esp + 0x44], eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x48], 0
cmp edi, eax
jb 0x479ee5
call fcn.004ac063
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x58]
add eax, dword [esp + 0x24]
sub ecx, dword [ebp + 0x54]
mov esi, dword [eax + 0x1c]
sar ecx, 4
cmp esi, ecx
jb 0x479f01
call fcn.004ac063
shl esi, 4
add esi, dword [ebp + 0x54]
mov esi, dword [esi + 8]
test ebx, ebx
jge 0x479f12
xor eax, eax
jmp 0x479f31
mov edi, esi
mov esi, dword [esp + 0x104]
call fcn.0048a390
mov edi, dword [esp + 0x38]
test eax, eax
je 0x479f31
add ebx, eax
cmp ebx, dword [esi + 0xc]
sbb eax, eax
and eax, ebx
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
mov dword [esp + 0x3c], eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x479f55
call fcn.004ac063
mov esi, dword [ebp + 0x3c]
add esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
sar ecx, 2
cmp dword [esp + 0x30], ecx
jb 0x479f70
call fcn.004ac063
mov eax, dword [esi + 0x10]
add eax, dword [esp + 0x34]
lea esi, [esp + 0x48]
mov edx, dword [eax]
lea edi, [esp + 0x3c]
mov ecx, ebp
call fcn.0047c070
test al, al
je 0x479785
lea ebx, [esp + 0x48]
lea edi, [esp + 0x4c]
call fcn.00484250
inc dword [esp + 0x30]
mov edi, dword [esp + 0x38]
jmp 0x479d28
lea edx, [esp + 0x4c]
push edx
lea edi, [esp + 0x88]
call fcn.00484460
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
test eax, eax
jge 0x479cb6
mov ecx, dword [ebp + 0x28]
sub ecx, dword [ebp + 0x24]
mov esi, dword [esp + 0x38]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x479fed
call fcn.004ac063
mov eax, dword [ebp + 0x24]
mov edi, dword [esp + 0xb8]
lea edx, [esi + esi*2]
mov ecx, dword [eax + edx*8 + 0x10]
sub ecx, dword [eax + edx*8 + 0xc]
lea esi, [eax + edx*8]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x47a01f
call fcn.004ac063
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x64]
lea eax, [edi + edi*2]
push edx
lea edi, [ecx + eax*8]
call fcn.004846c0
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0xfc], 5
call fcn.00484600
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0xfc], 0xffffffff
call fcn.0047a450
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
inc eax
cmp eax, dword [ecx]
mov dword [esp + 0xc0], eax
jl 0x478ae0
inc dword [esp + 0xb8]
mov edi, dword [esp + 0xb8]
jmp 0x478a80
inc esi
cmp esi, dword [ebp + 0xf8]
mov dword [esp + 0x38], esi
jl 0x478940
jmp 0x478917
mov byte [esp + 0xf8], 8
mov eax, dword [esp + 0x58]
cmp eax, edi
je 0x47a0ba
push eax
call fcn.004aac3a
add esp, 4
mov byte [esp + 0xf8], 5
mov edx, dword [esp + 0x4c]
push edx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
call fcn.004aac3a
add esp, 4
mov dword [esp + 0xf8], 9
lea eax, [esp + 0x9c]
mov dword [esp + 0x2c], eax
mov byte [esp + 0xf8], 0xb
mov eax, dword [esp + 0xa8]
cmp eax, edi
je 0x47a10d
push eax
call fcn.004aac3a
add esp, 4
mov byte [esp + 0xf8], 0xa
mov ecx, dword [esp + 0x9c]
push ecx
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
call fcn.004aac3a
lea edx, [esp + 0x88]
add esp, 4
mov dword [esp + 0x3c], edx
mov bl, 0xc
mov byte [esp + 0xf8], bl
mov esi, dword [esp + 0x90]
cmp esi, edi
je 0x47a1be
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x2c], esi
cmp esi, ebp
je 0x47a1b5
jmp 0x47a170
mov byte [esp + 0xf8], 0xd
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x47a188
push eax
call fcn.004aac3a
add esp, 4
mov byte [esp + 0xf8], bl
mov eax, dword [esi]
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.004aac3a
add esi, 0x18
add esp, 4
mov dword [esp + 0x2c], esi
cmp esi, ebp
jne 0x47a170
mov esi, dword [esp + 0x90]
push esi
call fcn.004aac3a
add esp, 4
mov byte [esp + 0xf8], 9
mov eax, dword [esp + 0x84]
push eax
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
call fcn.004aac3a
lea ecx, [esp + 0x70]
add esp, 4
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xf8], 0xe
mov eax, dword [esp + 0x78]
cmp eax, edi
je 0x47a20f
push eax
call fcn.004aac3a
add esp, 4
mov dword [esp + 0xf8], 0xffffffff
mov edx, dword [esp + 0x6c]
push edx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
call fcn.004aac3a
add esp, 4
xor al, al
jmp 0x478919
mov byte [esp + 0xf8], 0x1d
mov eax, dword [esp + 0x58]
xor edi, edi
cmp eax, edi
je 0x47a25b
push eax
call fcn.004aac3a
add esp, 4
mov byte [esp + 0xf8], 5
mov ecx, dword [esp + 0x4c]
push ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
call fcn.004aac3a
add esp, 4
mov dword [esp + 0xf8], 0x1e
lea edx, [esp + 0x9c]
mov dword [esp + 0x2c], edx
mov byte [esp + 0xf8], 0x20
mov eax, dword [esp + 0xa8]
cmp eax, edi
je 0x47a2ae
push eax
call fcn.004aac3a
add esp, 4
mov byte [esp + 0xf8], 0x1f
mov eax, dword [esp + 0x9c]
push eax
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
call fcn.004aac3a
lea ecx, [esp + 0x88]
add esp, 4
mov dword [esp + 0x3c], ecx
mov bl, 0x21
mov byte [esp + 0xf8], bl
mov esi, dword [esp + 0x90]
cmp esi, edi
je 0x47a35e
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x2c], esi
cmp esi, ebp
je 0x47a355
lea esp, [esp]
mov byte [esp + 0xf8], 0x22
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x47a328
push eax
call fcn.004aac3a
add esp, 4
mov byte [esp + 0xf8], bl
mov eax, dword [esi]
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.004aac3a
add esi, 0x18
add esp, 4
mov dword [esp + 0x2c], esi
cmp esi, ebp
jne 0x47a310
mov esi, dword [esp + 0x90]
push esi
call fcn.004aac3a
add esp, 4
mov byte [esp + 0xf8], 0x1e
mov edx, dword [esp + 0x84]
push edx
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
call fcn.004aac3a
lea eax, [esp + 0x70]
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0xf8], 0x23
jmp 0x47914e
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0xfc], 5
call fcn.00484600
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0xfc], 0xffffffff
call fcn.0047a450
xor al, al
jmp 0x478919