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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x475a09
mov eax, dword fs:[0]
push eax
sub esp, 0x240
push ebx
push esi
push edi
mov eax, dword [0x47e66c]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x48], ebx
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
call edx
test al, al
jne 0x4a729b
push 1
push ebx
lea ecx, [esp + 0x134]
call fcn.004a54f0
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x258], 0
mov edx, dword [esp + 0x130]
lea eax, [esp + 0xd8]
push eax
mov dword [esp + 0x14], edx
call fcn.004a5270
add esp, 4
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push edi
push ecx
push eax
push esi
lea ecx, [esp + 0x13c]
mov byte [esp + 0x268], 1
call fcn.004a7150
lea ecx, [esp + 0xd8]
mov byte [esp + 0x258], 0
call fcn.004a4f10
test edi, edi
jbe 0x4a726c
mov dword [esp + 0x1c], edi
nop
lea edx, [esp + 0xd8]
push edx
mov edx, dword [esp + 0x14]
mov ecx, esi
call fcn.004a53b0
add esp, 4
mov edi, eax
mov byte [esp + 0x258], 2
mov al, byte [edi]
lea ecx, [edi + 4]
lea ebx, [esi + 0x18]
push ecx
lea ecx, [ebx - 0x14]
mov byte [esi], al
call fcn.0049ae30
add edi, 0x18
push edi
mov ecx, ebx
call fcn.0049ae30
lea ecx, [esp + 0xd8]
mov byte [esp + 0x258], 0
call fcn.004a4f10
add esi, 0x2c
sub dword [esp + 0x1c], 1
jne 0x4a7210
lea ecx, [esp + 0x12c]
mov dword [esp + 0x258], 0xffffffff
call fcn.004a4f80
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0xc]
mov edi, dword [ebx + 4]
push edx
lea eax, [ebx + 8]
push eax
lea ecx, [esp + 0x194]
push ecx
call fcn.004a6d50
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x25c], 3
call fcn.004a8c50
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x25c], 4
call fcn.004a8c50
mov esi, dword [ebp + 0x14]
push esi
lea ecx, [esp + 0x70]
mov byte [esp + 0x25c], 5
call fcn.004a87d0
push esi
lea ecx, [esp + 0x94]
push ecx
call fcn.004a89d0
push esi
lea edx, [esp + 0xac]
push edx
mov byte [esp + 0x260], 6
call fcn.004a8ac0
push esi
lea eax, [esp + 0xc4]
push eax
mov byte [esp + 0x260], 7
call fcn.004a89d0
xor edi, edi
mov byte [esp + 0x258], 8
test esi, esi
jbe 0x4a7434
mov dword [esp + 0x24], edi
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
mov esi, dword [ebp + 0x10]
push esi
lea ecx, [esp + 0xdc]
mov byte [esp + 0x18], al
call fcn.0049a8a0
mov byte [esp + 0x258], 9
call fcn.004a1160
push eax
lea ecx, [esp + 0xf0]
call fcn.0049a8a0
mov cl, byte [esp + 0x14]
mov byte [esp + 0x258], 0xa
mov byte [esp + 0x10c], cl
push 5
lea ecx, [esp + 0xf0]
mov dword [esp + 0x104], 5
mov dword [esp + 0x108], 0
mov byte [esp + 0x112], 1
mov byte [esp + 0x113], 0
call fcn.0049d130
lea edx, [esp + 0xd8]
push edx
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0x260], 0xb
call fcn.004a8920
add esi, 0x14
lea eax, [esp + 0xd8]
mov dword [ebp + 0x10], esi
mov byte [esp + 0x258], 8
call fcn.004a84d0
mov ecx, dword [esp + 0x7c]
sub ecx, dword [esp + 0x78]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x4a7415
call 0x4d6e73
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x78]
lea esi, [edx + eax]
call fcn.004a5190
add dword [esp + 0x24], 0x38
inc edi
cmp edi, dword [ebp + 0x14]
jb 0x4a733f
mov dword [esp + 0x2c], 0
lea esp, [esp]
xor ebx, ebx
mov byte [esp + 0x1b], 0
mov byte [esp + 0x14], 0
cmp dword [ebp + 0x14], ebx
jbe 0x4a7801
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
lea esp, [esp]
mov esi, edi
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4a7498
call 0x4d6e73
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x20]
cmp byte [edx + ecx + 0x37], 0
jne 0x4a7788
mov esi, edi
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4a74cf
call 0x4d6e73
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
cmp edx, dword [eax + ecx + 0x2c]
jne 0x4a7788
cmp byte [esp + 0x14], 0
jne 0x4a7507
lea ecx, [esp + 0x190]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.004a86d0
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x14], 1
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4a7529
call 0x4d6e73
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x20]
lea esi, [edx + ecx]
mov ecx, dword [esp + 0xd0]
sub ecx, dword [esp + 0xcc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4a7558
call 0x4d6e73
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0xcc]
mov eax, dword [ecx + edx + 0xc]
add esi, 0x30
mov dword [esp + 0x1c], esi
lea esi, [ecx + edx]
test eax, eax
jne 0x4a7579
xor ecx, ecx
jmp 0x4a7581
mov ecx, dword [esi + 0x14]
sub ecx, eax
sar ecx, 2
mov edi, dword [esi + 0x10]
mov edx, edi
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x4a759f
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [edi], ecx
add edi, 4
mov dword [esi + 0x10], edi
jmp 0x4a75bd
cmp eax, edi
jbe 0x4a75a8
call 0x4d6e73
mov eax, dword [esi]
mov edx, dword [esp + 0x1c]
push edi
push eax
push edx
lea eax, [esp + 0x58]
push eax
mov eax, esi
call fcn.004a0a90
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x3c]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
lea edx, [edx + ecx - 1]
mov ecx, dword [esp + 0xa0]
sub ecx, dword [esp + 0x9c]
mov dword [esp + 0x1c], edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4a7606
call 0x4d6e73
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x9c]
lea esi, [ecx + edx]
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4a761f
xor eax, eax
jmp 0x4a7627
mov eax, dword [esi + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [esi + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x4a7643
mov eax, dword [esp + 0x1c]
mov dword [edi], eax
add edi, 4
mov dword [esi + 0x10], edi
jmp 0x4a7664
cmp ecx, edi
jbe 0x4a764c
call 0x4d6e73
mov eax, dword [esi]
push edi
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x130]
push edx
mov eax, esi
call fcn.004a0a90
mov ecx, dword [esp + 0x7c]
sub ecx, dword [esp + 0x78]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4a7688
call 0x4d6e73
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x78]
lea esi, [ecx + edx]
mov ecx, dword [esp + 0xb8]
sub ecx, dword [esp + 0xb4]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4a76bb
call 0x4d6e73
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xb4]
mov cl, byte [esi + 0x35]
mov esi, dword [edx + eax + 0x18]
lea edi, [edx + eax]
mov byte [esp + 0x10], cl
cmp esi, dword [edi + 0x1c]
jbe 0x4a76de
call 0x4d6e73
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], 0
test edi, edi
jne 0x4a76f9
call 0x4d6e73
mov eax, dword [edi + 8]
mov ecx, dword [edi]
mov dword [esp + 0x84], ecx
test eax, eax
jbe 0x4a7716
push eax
lea esi, [esp + 0x88]
call 0x4aa320
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x8c]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x9c]
mov dword [eax + 4], edx
lea edx, [esp + 0x120]
mov dword [eax + 8], ecx
push edx
mov eax, edi
call fcn.004a9330
mov ecx, dword [esp + 0x7c]
sub ecx, dword [esp + 0x78]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4a7770
call 0x4d6e73
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x78]
lea esi, [ecx + edx]
call fcn.004a5190
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
cmp byte [esp + 0x1b], 0
jne 0x4a77c7
mov esi, edi
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4a77b7
call 0x4d6e73
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x20]
cmp byte [edx + ecx + 0x37], 0
mov byte [esp + 0x1b], 0
jne 0x4a77cc
mov byte [esp + 0x1b], 1
add dword [esp + 0x24], 0x18
add dword [esp + 0x28], 0x24
add dword [esp + 0x20], 0x38
inc ebx
cmp ebx, dword [ebp + 0x14]
jb 0x4a7470
cmp byte [esp + 0x1b], 0
je 0x4a7801
lea esi, [esp + 0x18c]
call fcn.004a6e90
inc dword [esp + 0x2c]
jmp 0x4a7440
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov ebx, eax
cmp edi, eax
jbe 0x4a781c
call 0x4d6e73
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
cmp edi, eax
jbe 0x4a7829
call 0x4d6e73
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 4]
push ebx
push esi
push edi
push ecx
push eax
call 0x4aa6c0
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
sub edi, ecx
mov eax, 0x88888889
imul edi
add edx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add esp, 0x14
xor ebx, ebx
xor esi, esi
add eax, edx
je 0x4a7b74
xor edi, edi
cmp esi, eax
jb 0x4a7877
call 0x4d6e73
mov ecx, dword [esp + 0x3c]
cmp dword [edi + ecx + 0x38], 1
je 0x4a78b1
mov edx, dword [edi + ecx + 0x34]
cmp dword [edx], 0
jne 0x4a78b1
mov eax, dword [edi + ecx + 0x30]
test eax, eax
je 0x4a7b4d
lea edx, [edx + eax*4 - 4]
cmp dword [edx], 0
jne 0x4a78a9
dec eax
sub edx, 4
test eax, eax
jne 0x4a7897
jmp 0x4a7b4d
test eax, eax
je 0x4a7b4d
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 4]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
sub ebx, ecx
mov eax, 0x88888889
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4a78e2
call 0x4d6e73
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
lea edx, [edi + ecx]
sub ebx, ecx
mov dword [esp + 0x4c], edx
mov eax, 0x88888889
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4a790f
call 0x4d6e73
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
lea edx, [edi + ecx]
sub ebx, ecx
mov dword [esp + 0x1c], edx
mov eax, 0x88888889
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4a793c
call 0x4d6e73
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x4c]
add eax, 0x28
push eax
mov eax, dword [esp + 0x20]
lea ebx, [edi + ecx]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
add eax, 0x14
push eax
call edx
push eax
lea ecx, [ebx + 0x14]
call fcn.0049ae30
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 4]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x40]
sub ecx, ebx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4a7998
call 0x4d6e73
mov ebx, dword [esp + 0x3c]
lea ecx, [edi + ebx]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x40]
sub ecx, ebx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4a79c5
call 0x4d6e73
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
add eax, 0x28
push eax
add ebx, edi
call edx
push eax
lea ecx, [ebx + 0x28]
call fcn.0049ae30
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 4]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x40]
sub ecx, ebx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4a7a18
call 0x4d6e73
mov ebx, dword [esp + 0x3c]
lea ecx, [edi + ebx]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x40]
sub ecx, ebx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4a7a45
call 0x4d6e73
mov ebx, dword [esp + 0x3c]
lea ecx, [edi + ebx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x40]
sub ecx, ebx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4a7a72
call 0x4d6e73
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
add eax, 0x28
push eax
mov eax, dword [esp + 0x20]
push eax
add ebx, edi
call edx
push eax
mov ecx, ebx
call fcn.0049ae30
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 4]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x40]
sub ecx, ebx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4a7ac9
call 0x4d6e73
mov ebx, dword [esp + 0x3c]
lea ecx, [edi + ebx]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x40]
sub ecx, ebx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4a7af6
call 0x4d6e73
mov ebx, dword [esp + 0x3c]
lea ecx, [edi + ebx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x40]
sub ecx, ebx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4a7b23
call 0x4d6e73
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
add eax, 0x28
push eax
mov eax, dword [esp + 0x20]
add eax, 0x14
push eax
add ebx, edi
call edx
push eax
lea ecx, [ebx + 0x14]
call fcn.0049ae30
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
sub ebx, ecx
mov eax, 0x88888889
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add edi, 0x3c
cmp esi, eax
jb 0x4a7877
xor ebx, ebx
push 4
call 0x4d6662
add esp, 4
cmp eax, ebx
je 0x4a7b8a
lea ecx, [esp + 0x54]
mov dword [eax], ecx
jmp 0x4a7b8c
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov byte [esp + 0x258], 0xd
mov dword [esp + 0x28], ebx
cmp dword [ebp + 0x14], ebx
jbe 0x4a816f
mov ebx, dword [ebp + 8]
xor eax, eax
add ebx, 0x18
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ebx
jmp 0x4a7bd0
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x28], eax
jb 0x4a7c03
call 0x4d6e73
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x24]
mov esi, dword [eax + ecx + 0x10]
sub esi, dword [eax + ecx + 0xc]
sub esp, 0x40
mov edi, esp
mov dword [esp + 0x8c], esp
lea ecx, [edi + 4]
sar esi, 2
mov dword [esp + 0x8c], edi
mov byte [edi], 1
call fcn.0049a770
lea ecx, [edi + 0x18]
mov byte [esp + 0x298], 0xe
call fcn.0049a770
lea ecx, [edi + 0x2c]
mov byte [esp + 0x298], 0xf
call fcn.0049a770
push esi
lea ecx, [esp + 0x98]
mov byte [esp + 0x29c], 0xd
call fcn.004a93e0
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
mov edi, dword [esp + 0x24]
mov edx, esi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x28], eax
jb 0x4a7caf
call 0x4d6e73
mov esi, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
mov edx, dword [edi + ecx + 0x10]
sub edx, dword [edi + ecx + 0xc]
sar edx, 2
cmp dword [esp + 0x20], edx
jae 0x4a803f
sub esi, ecx
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x28], eax
jb 0x4a7ce9
call 0x4d6e73
mov ecx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x20]
lea esi, [edi + ecx + 0xc]
mov ecx, dword [edi + ecx + 0x10]
sub ecx, dword [esi]
sar ecx, 2
cmp ebx, ecx
jb 0x4a7d03
call 0x4d6e73
mov eax, dword [esi]
lea ecx, [ebx*4]
mov esi, dword [eax + ecx]
add eax, ecx
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x3c]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4a7d35
call 0x4d6e73
mov edx, dword [esp + 0x3c]
mov ecx, esi
shl ecx, 4
sub ecx, esi
cmp dword [edx + ecx*4 + 0x38], 1
lea esi, [edx + ecx*4]
mov dword [esp + 0x4c], esi
je 0x4a7d9d
mov ecx, dword [esi + 0x34]
cmp dword [ecx], 0
jne 0x4a7d9d
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4a7d74
lea ecx, [ecx + eax*4 - 4]
cmp dword [ecx], 0
jne 0x4a7d70
dec eax
sub ecx, 4
test eax, eax
jne 0x4a7d61
jmp 0x4a7d74
test eax, eax
jne 0x4a7d9d
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x60]
sar eax, 6
cmp ebx, eax
jb 0x4a7d88
call 0x4d6e73
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x20]
mov byte [ecx + edx], 1
jmp 0x4a7f42
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x60]
sar eax, 6
cmp ebx, eax
jb 0x4a7db1
call 0x4d6e73
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x60]
mov byte [edi + ecx], 0
mov edx, dword [esp + 0x64]
sub edx, dword [esp + 0x60]
sar edx, 6
cmp ebx, edx
jb 0x4a7dd1
call 0x4d6e73
mov eax, dword [esp + 0x60]
push esi
lea ecx, [edi + eax + 4]
call fcn.0049ae30
mov ecx, dword [esp + 0xb8]
sub ecx, dword [esp + 0xb4]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x28], ecx
jb 0x4a7e09
call 0x4d6e73
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xb4]
mov edi, dword [edx + eax + 0x18]
cmp edi, dword [edx + eax + 0x1c]
lea esi, [edx + eax]
jbe 0x4a7e26
call 0x4d6e73
xor ebx, ebx
test esi, esi
jne 0x4a7e31
call 0x4d6e73
mov esi, dword [esi]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x84], esi
push ecx
lea esi, [esp + 0x88]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], ebx
call 0x4aa320
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4a7e8d
mov esi, dword [eax]
test esi, esi
jne 0x4a7e6f
call 0x4d6e73
mov esi, dword [esi]
mov ebx, dword [esp + 0x88]
test esi, esi
je 0x4a7e80
test ebx, ebx
jne 0x4a7e85
call 0x4d6e73
test esi, esi
je 0x4a7e91
mov eax, dword [esi]
jmp 0x4a7e93
xor esi, esi
jmp 0x4a7e6a
xor eax, eax
mov edi, dword [eax + 0x18]
cmp edi, dword [eax + 0x1c]
jbe 0x4a7ea0
call 0x4d6e73
mov eax, ebx
sub eax, edi
mov edi, dword [esp + 0x8c]
sar eax, 2
shl eax, 5
add eax, edi
test esi, esi
je 0x4a7ebb
mov esi, dword [esi]
jmp 0x4a7ebd
xor esi, esi
cmp eax, dword [esi + 8]
jb 0x4a7ec7
call 0x4d6e73
mov edx, 1
mov ecx, edi
shl edx, cl
test dword [ebx], edx
mov ebx, dword [esp + 0x20]
je 0x4a7f15
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x48]
mov esi, dword [eax + 4]
sar ecx, 6
cmp ebx, ecx
jb 0x4a7ef3
call 0x4d6e73
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x2c]
lea edi, [edx + eax]
mov eax, dword [esp + 0x4c]
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
add eax, 0x14
push eax
mov ecx, esi
call edx
push eax
lea ecx, [edi + 0x18]
jmp 0x4a7f3d
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x60]
sar eax, 6
cmp ebx, eax
jb 0x4a7f29
call 0x4d6e73
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x60]
add ecx, 0x14
push ecx
lea ecx, [edx + eax + 0x18]
call fcn.0049ae30
mov ecx, dword [esp + 0xd0]
mov edi, dword [esp + 0xcc]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x28], ecx
jb 0x4a7f75
call 0x4d6e73
mov edi, dword [esp + 0xcc]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + edi + 0x10]
sub edx, dword [eax + edi + 0xc]
lea esi, [eax + edi + 0xc]
sar edx, 2
cmp ebx, edx
jb 0x4a7f91
call 0x4d6e73
mov eax, dword [esi]
lea ecx, [ebx*4]
add eax, ecx
mov eax, dword [eax]
push eax
lea edi, [esp + 0x114]
call fcn.0049aa70
mov esi, eax
mov byte [esp + 0x258], 0x10
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
sar ecx, 6
cmp ebx, ecx
jb 0x4a7fc9
call 0x4d6e73
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x60]
push esi
lea ecx, [edx + eax + 0x2c]
call fcn.0049ae30
mov byte [esp + 0x258], 0xd
mov esi, dword [esp + 0x118]
mov eax, dword [esp + 0x11c]
add esi, esi
add esi, esi
push esi
push 0
push eax
mov edi, eax
call 0x4d6b40
add esp, 0xc
push edi
cmp esi, 0x10
jb 0x4a8024
call 0x4d6ce5
inc ebx
add esp, 4
add dword [esp + 0x2c], 0x40
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x10]
jmp 0x4a7c6f
call 0x4d6bba
inc ebx
add esp, 4
add dword [esp + 0x2c], 0x40
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x10]
jmp 0x4a7c6f
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x10], eax
cmp edi, eax
jbe 0x4a805c
call 0x4d6e73
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x54]
cmp edi, eax
jbe 0x4a8069
call 0x4d6e73
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x48]
push ecx
push esi
push edi
push edx
push eax
lea ecx, [esp + 0xec]
push ecx
call 0x4aae30
add esp, 0x18
mov esi, eax
mov byte [esp + 0x258], 0x11
mov dl, byte [esi]
lea eax, [esi + 4]
push eax
lea ecx, [ebx - 0x14]
mov byte [ebx - 0x18], dl
call fcn.0049ae30
add esi, 0x18
push esi
mov ecx, ebx
call fcn.0049ae30
mov byte [esp + 0x258], 0xd
mov esi, dword [esp + 0xf8]
mov eax, dword [esp + 0xfc]
add esi, esi
add esi, esi
push esi
push 0
push eax
mov edi, eax
call 0x4d6b40
add esp, 0xc
push edi
cmp esi, 0x10
jb 0x4a80e5
call 0x4d6ce5
jmp 0x4a80ea
call 0x4d6bba
mov esi, dword [esp + 0xe8]
mov eax, dword [esp + 0xec]
add esp, 4
add esi, esi
add esi, esi
push esi
push 0
push eax
mov edi, eax
call 0x4d6b40
add esp, 0xc
push edi
cmp esi, 0x10
jb 0x4a811a
call 0x4d6ce5
jmp 0x4a811f
call 0x4d6bba
mov eax, dword [esp + 0x2c]
add dword [esp + 0x28], 0x18
add dword [esp + 0x20], 0x24
inc eax
add ebx, 0x2c
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ebx
cmp eax, dword [ebp + 0x14]
jb 0x4a7bd0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4a816d
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x64]
push ecx
push edx
push eax
call 0x4ac850
mov eax, dword [esp + 0x6c]
add esp, 0xc
push eax
call 0x4d6657
add esp, 4
xor ebx, ebx
mov ecx, dword [esp + 0x54]
push ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call 0x4d6657
mov esi, dword [esp + 0xd0]
add esp, 4
cmp esi, ebx
je 0x4a81e0
mov eax, dword [esp + 0xd0]
mov edi, eax
cmp esi, eax
je 0x4a81d7
add esi, 0xc
mov eax, dword [esi]
cmp eax, ebx
je 0x4a81b2
push eax
call 0x4d6657
add esp, 4
mov edx, dword [esi - 0xc]
push edx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call 0x4d6657
add esi, 0x18
lea eax, [esi - 0xc]
add esp, 4
cmp eax, edi
jne 0x4a81a3
mov esi, dword [esp + 0xcc]
push esi
call 0x4d6657
add esp, 4
mov ecx, dword [esp + 0xc0]
push ecx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
call 0x4d6657
mov eax, dword [esp + 0xb8]
add esp, 4
cmp eax, ebx
je 0x4a8232
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xb8]
push edx
push ecx
call 0x4ac5e0
mov edx, dword [esp + 0xbc]
push edx
call 0x4d6657
add esp, 0xc
mov eax, dword [esp + 0xa8]
push eax
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
call 0x4d6657
mov esi, dword [esp + 0xa0]
add esp, 4
cmp esi, ebx
je 0x4a82af
mov eax, dword [esp + 0xa0]
mov edi, eax
cmp esi, eax
je 0x4a82a6
add esi, 0xc
mov eax, dword [esi]
cmp eax, ebx
je 0x4a8281
push eax
call 0x4d6657
add esp, 4
mov ecx, dword [esi - 0xc]
push ecx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call 0x4d6657
add esi, 0x18
lea edx, [esi - 0xc]
add esp, 4
cmp edx, edi
jne 0x4a8272
mov esi, dword [esp + 0x9c]
push esi
call 0x4d6657
add esp, 4
mov eax, dword [esp + 0x90]
push eax
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
call 0x4d6657
mov eax, dword [esp + 0x7c]
add esp, 4
cmp eax, ebx
je 0x4a82ff
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x7c]
push ecx
push edx
push eax
call 0x4ac340
mov eax, dword [esp + 0x84]
add esp, 0xc
push eax
call 0x4d6657
add esp, 4
mov ecx, dword [esp + 0x6c]
push ecx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
call 0x4d6657
mov esi, dword [esp + 0x40]
add esp, 4
cmp esi, ebx
je 0x4a834b
mov edi, dword [esp + 0x40]
cmp esi, edi
je 0x4a8342
mov edi, edi
mov eax, esi
call fcn.004a6fe0
add esi, 0x3c
cmp esi, edi
jne 0x4a8330
mov esi, dword [esp + 0x3c]
push esi
call 0x4d6657
add esp, 4
mov edx, dword [esp + 0x30]
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call 0x4d6657
add esp, 4
lea esi, [esp + 0x18c]
call fcn.004a8390
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10