Function at 0x4c9ac8
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ad01b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x30], ebx
xor edi, edi
lea ecx, [esp + 0x4c]
push edi
mov dword [esp + 0x128], edi
call fcn.004b3b78
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x128], 1
call fcn.004b3b78
push edi
lea ecx, [esp + 0x38]
mov byte [esp + 0x128], 2
call fcn.004b3b78
push edi
lea ecx, [esp + 0x110]
mov byte [esp + 0x128], 3
call fcn.004b3b78
lea ecx, [esp + 0x74]
mov byte [esp + 0x124], 4
call fcn.004af1d8
mov ecx, ebx
mov byte [esp + 0x124], 5
mov dword [esp + 0x10], edi
call fcn.004fa858
mov esi, dword [esp + 0x138]
mov ebp, eax
cmp esi, edi
je 0x4c9b73
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
xor edi, edi
lea ecx, [esp + 0x12c]
push edi
call fcn.0050d492
mov edx, eax
mov al, byte [esp + 0x4b]
mov byte [esp + 0x60], al
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x68]
call dword [0x4b4618]
lea ecx, [esp + 0x4c]
push 1
lea edx, [esp + 0x64]
push ecx
push edx
lea ecx, [esp + 0x80]
mov byte [esp + 0x130], 6
call fcn.004af268
and eax, 0xff
mov byte [esp + 0x124], 5
mov edi, eax
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4c9c04
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4c9bfb
cmp al, 0xff
je 0x4c9bfb
dec al
mov byte [ecx], al
jmp 0x4c9c04
push ecx
call fcn.0050d474
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x130]
call fcn.0050d48c
test edi, edi
jne 0x4c9d3a
test esi, esi
je 0x4c9c2a
push 0x4d13b4
mov ecx, esi
call fcn.0050d47a
push 1
lea ecx, [esp + 0xfc]
mov byte [esp + 0x128], 9
call dword [fcn.004b461c]
push 1
lea ecx, [esp + 0xd8]
mov byte [esp + 0x128], 8
call dword [fcn.004b461c]
mov eax, dword [esp + 0xd0]
mov byte [esp + 0x124], 7
test eax, eax
je 0x4c9c82
lea ecx, [esp + 0xa4]
call fcn.00494e58
mov eax, dword [esp + 0xd0]
test eax, eax
jne 0x4c9c6b
mov eax, dword [esp + 0xa0]
mov byte [esp + 0x124], 4
test eax, eax
je 0x4c9cd5
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0xa0]
add ecx, 4
dec eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0xa0], eax
je 0x4c9cc1
mov eax, ecx
mov ecx, dword [esp + 0x7c]
cmp eax, ecx
jne 0x4c9cca
lea ecx, [esp + 0x74]
call fcn.004951f8
mov eax, dword [esp + 0xa0]
test eax, eax
jne 0x4c9c95
lea ecx, [esp + 0x10c]
mov byte [esp + 0x124], 3
call fcn.004b4098
lea ecx, [esp + 0x34]
mov byte [esp + 0x124], 2
call fcn.004b4098
lea ecx, [esp + 0x1c]
mov byte [esp + 0x124], 1
call fcn.004b4098
lea ecx, [esp + 0x4c]
mov byte [esp + 0x124], 0
call fcn.004b4098
lea ecx, [esp + 0x12c]
mov dword [esp + 0x124], 0xffffffff
call fcn.0050d468
xor eax, eax
jmp 0x4cb272
push 0
lea ecx, [esp + 0x50]
push esi
push ecx
mov ecx, ebx
call fcn.004d1658
test eax, eax
jne 0x4c9e61
push 1
lea ecx, [esp + 0xfc]
mov byte [esp + 0x128], 0xc
call dword [fcn.004b461c]
push 1
lea ecx, [esp + 0xd8]
mov byte [esp + 0x128], 0xb
call dword [fcn.004b461c]
mov eax, dword [esp + 0xd0]
mov byte [esp + 0x124], 0xa
test eax, eax
je 0x4c9da9
lea ecx, [esp + 0xa4]
call fcn.00494e58
mov eax, dword [esp + 0xd0]
test eax, eax
jne 0x4c9d92
mov eax, dword [esp + 0xa0]
mov byte [esp + 0x124], 4
test eax, eax
je 0x4c9dfc
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0xa0]
add ecx, 4
dec eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0xa0], eax
je 0x4c9de8
mov eax, dword [esp + 0x7c]
mov edx, ecx
cmp edx, eax
jne 0x4c9df1
lea ecx, [esp + 0x74]
call fcn.004951f8
mov eax, dword [esp + 0xa0]
test eax, eax
jne 0x4c9dbc
lea ecx, [esp + 0x10c]
mov byte [esp + 0x124], 3
call fcn.004b4098
lea ecx, [esp + 0x34]
mov byte [esp + 0x124], 2
call fcn.004b4098
lea ecx, [esp + 0x1c]
mov byte [esp + 0x124], 1
call fcn.004b4098
lea ecx, [esp + 0x4c]
mov byte [esp + 0x124], 0
call fcn.004b4098
lea ecx, [esp + 0x12c]
mov dword [esp + 0x124], 0xffffffff
call fcn.0050d468
xor eax, eax
jmp 0x4cb272
push 0x4d0c60
lea ecx, [esp + 0x50]
call fcn.004b5078
push eax
lea ecx, [esp + 0x20]
call fcn.004b4218
lea ecx, [esp + 0x1c]
call fcn.004b4318
cmp eax, 7
jne 0x4c9eb1
push 0x4d0be4
lea ecx, [esp + 0x20]
call fcn.004b5078
push eax
call fcn.00477948
mov ebx, dword [esp + 0x138]
add esp, 4
test eax, eax
je 0x4c9eb8
mov dword [ebx + 0x108], eax
jmp 0x4c9ebe
mov ebx, dword [esp + 0x134]
mov dword [ebx + 0x108], ebp
push 0x4d5bac
lea ecx, [esp + 0x50]
call fcn.004b5078
push eax
lea ecx, [esp + 0x20]
call fcn.004b4218
lea ecx, [esp + 0x1c]
call fcn.004b4318
cmp eax, 6
je 0x4c9ff8
push 1
lea ecx, [esp + 0xfc]
mov byte [esp + 0x128], 0xf
call dword [fcn.004b461c]
push 1
lea ecx, [esp + 0xd8]
mov byte [esp + 0x128], 0xe
call dword [fcn.004b461c]
mov eax, dword [esp + 0xd0]
mov byte [esp + 0x124], 0xd
test eax, eax
je 0x4c9f40
lea ecx, [esp + 0xa4]
call fcn.00494e58
mov eax, dword [esp + 0xd0]
test eax, eax
jne 0x4c9f29
mov eax, dword [esp + 0xa0]
mov byte [esp + 0x124], 4
test eax, eax
je 0x4c9f93
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0xa0]
add ecx, 4
dec eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0xa0], eax
je 0x4c9f7f
mov eax, ecx
mov ecx, dword [esp + 0x7c]
cmp eax, ecx
jne 0x4c9f88
lea ecx, [esp + 0x74]
call fcn.004951f8
mov eax, dword [esp + 0xa0]
test eax, eax
jne 0x4c9f53
lea ecx, [esp + 0x10c]
mov byte [esp + 0x124], 3
call fcn.004b4098
lea ecx, [esp + 0x34]
mov byte [esp + 0x124], 2
call fcn.004b4098
lea ecx, [esp + 0x1c]
mov byte [esp + 0x124], 1
call fcn.004b4098
lea ecx, [esp + 0x4c]
mov byte [esp + 0x124], 0
call fcn.004b4098
lea ecx, [esp + 0x12c]
mov dword [esp + 0x124], 0xffffffff
call fcn.0050d468
xor eax, eax
jmp 0x4cb272
mov eax, dword [ebx + 4]
xor edi, edi
cmp eax, edi
mov dword [ebx + 0x38], 1
jne 0x4ca00c
xor esi, esi
jmp 0x4ca014
mov esi, dword [ebx + 8]
sub esi, eax
sar esi, 2
lea ecx, [esp + 0x1c]
call fcn.004b4e58
cmp eax, edi
mov dword [esp + 0x2c], eax
je 0x4ca090
dec eax
push 0x4d5c6c
push eax
lea ecx, [esp + 0x24]
call fcn.004b4f08
mov ecx, eax
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
cmp esi, eax
jae 0x4ca090
jge 0x4ca090
sub eax, esi
mov esi, eax
push 0x40
call fcn.0050d486
mov dword [esp + 0x14], eax
mov dword [eax + 8], edi
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx], edi
mov edx, dword [esp + 0x10]
mov dword [edx + 0x1c], edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
mov dword [eax + 0x20], edi
mov ecx, dword [esp + 0x10]
push edx
push 1
mov dword [ecx + 0x3c], edi
mov eax, dword [ebx + 8]
push eax
mov ecx, ebx
call fcn.004e0e18
dec esi
jne 0x4ca04f
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x4ca09b
xor ecx, ecx
jmp 0x4ca0a3
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
xor eax, eax
cmp ecx, edi
jle 0x4ca0bc
mov edx, dword [ebx + 4]
inc eax
cmp eax, ecx
mov edx, dword [edx + eax*4 - 4]
mov dword [esp + 0x10], edx
mov dword [edx + 8], edi
jl 0x4ca0a9
mov eax, dword [esp + 0x2c]
xor ebp, ebp
cmp eax, edi
jbe 0x4ca258
mov esi, dword [esp + 0x30]
push ebp
lea ecx, [esp + 0x20]
call fcn.004b4f08
push eax
lea ecx, [esp + 0x38]
call fcn.004b4218
push 0x4d5c6c
lea ecx, [esp + 0x38]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
cmp eax, edi
je 0x4ca24b
mov ecx, dword [ebx + 4]
push 0x4d5c64
mov ecx, dword [ecx + eax*4 - 4]
mov dword [esp + 0x14], ecx
mov dword [ecx + 0x28], eax
lea ecx, [esp + 0x38]
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0xc], eax
push 0x4d0d48
lea ecx, [esp + 0x38]
call fcn.004b5078
push eax
call fcn.00477948
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edx], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push ecx
mov ecx, esi
call fcn.004c9598
mov edx, dword [esp + 0x10]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], edi
je 0x4ca2c2
push 0x4d5c58
lea ecx, [esp + 0x38]
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x14], eax
push 0x4d5c48
lea ecx, [esp + 0x38]
call fcn.004b5078
push eax
call fcn.00477948
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x34]
push 0x4d5c40
mov dword [edx + 0x18], eax
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x24], eax
push 0x4d0c24
lea ecx, [esp + 0x38]
call fcn.004b5078
push eax
call fcn.00477948
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x34]
push 0x4d5c34
mov dword [edx + 0x2c], eax
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x30], eax
push 0x4d5c28
lea ecx, [esp + 0x38]
call fcn.004b5078
push eax
call fcn.00477948
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edx + 0x34], eax
mov ecx, dword [esp + 0x10]
mov eax, 0x91a2b3c5
mul dword [ecx + 0x14]
mov eax, dword [ecx + 4]
shr edx, 0xb
imul edx, dword [eax + 0x24]
mov dword [ecx + 0x10], edx
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x1c], edi
mov edx, dword [esp + 0x10]
mov dword [edx + 8], 1
mov eax, dword [esp + 0x2c]
inc ebp
cmp ebp, eax
jb 0x4ca0ce
push 0x4d5c1c
lea ecx, [esp + 0x50]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x4c]
mov dword [ebx + 0x100], eax
mov dword [ebx + 0x104], eax
push 0x4d5c14
call fcn.004b5078
push eax
lea ecx, [esp + 0x20]
call fcn.004b4218
lea ecx, [esp + 0x1c]
call fcn.004b4318
cmp eax, 6
jne 0x4ca56b
mov eax, dword [ebx + 0x24]
lea esi, [ebx + 0x20]
test eax, eax
mov dword [esp + 0x14], 0
jne 0x4ca42a
xor edi, edi
jmp 0x4ca432
lea ecx, [esp + 0x14]
mov dword [eax + 8], edi
call fcn.0050d46e
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov byte [esp + 0x124], 0x10
mov ecx, dword [eax]
push ecx
push 0x4d5c00
push edx
call fcn.0050d5e2
mov ecx, dword [esp + 0x20]
mov eax, dword [esi]
add esp, 0xc
push ecx
push 0xd
mov ecx, esi
call dword [eax + 4]
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], 5
call fcn.0050d468
push 1
lea ecx, [esp + 0xfc]
mov byte [esp + 0x128], 0x13
call dword [fcn.004b461c]
push 1
lea ecx, [esp + 0xd8]
mov byte [esp + 0x128], 0x12
call dword [fcn.004b461c]
mov eax, dword [esp + 0xd0]
mov byte [esp + 0x124], 0x11
cmp eax, edi
je 0x4ca3a0
mov eax, dword [esp + 0xb0]
push edi
mov ecx, eax
add eax, 0x20
mov dword [esp + 0xb4], eax
call fcn.004953a8
mov eax, dword [esp + 0xd0]
dec eax
mov dword [esp + 0xd0], eax
je 0x4ca38b
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xac]
cmp edx, eax
jne 0x4ca397
lea ecx, [esp + 0xa4]
call fcn.004951f8
cmp dword [esp + 0xd0], edi
jne 0x4ca34f
mov eax, dword [esp + 0xa0]
mov byte [esp + 0x124], 4
cmp eax, edi
je 0x4ca3c5
lea ecx, [esp + 0x74]
call fcn.00494dc8
cmp dword [esp + 0xa0], edi
jne 0x4ca3b3
lea ecx, [esp + 0x10c]
mov byte [esp + 0x124], 3
call fcn.004b4098
lea ecx, [esp + 0x34]
mov byte [esp + 0x124], 2
call fcn.004b4098
lea ecx, [esp + 0x1c]
mov byte [esp + 0x124], 1
call fcn.004b4098
lea ecx, [esp + 0x4c]
mov byte [esp + 0x124], 0
call fcn.004b4098
lea ecx, [esp + 0x12c]
mov dword [esp + 0x124], 0xffffffff
call fcn.0050d468
xor eax, eax
jmp 0x4cb272
mov edi, dword [esi + 8]
sub edi, eax
sar edi, 2
lea ecx, [esp + 0x1c]
call fcn.004b4e58
cmp edi, eax
je 0x4ca4cf
xor edi, edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4ca46e
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x4ca46e
mov edx, dword [ebx + 0x24]
mov eax, dword [edx + edi*4]
push eax
mov dword [esp + 0x18], eax
call fcn.0050d474
add esp, 4
inc edi
jmp 0x4ca445
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
cmp ecx, ecx
mov eax, ecx
je 0x4ca488
mov edi, dword [eax]
add eax, 4
mov dword [edx], edi
add edx, 4
cmp eax, ecx
jne 0x4ca47a
mov eax, dword [esi + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], eax
mov dword [esi + 8], edx
xor edi, edi
call fcn.004b4e58
test eax, eax
jbe 0x4ca4cf
push 0xc
call fcn.0050d486
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
push ecx
push 1
push eax
mov ecx, esi
call fcn.004e0e18
lea ecx, [esp + 0x1c]
inc edi
call fcn.004b4e58
cmp edi, eax
jb 0x4ca4a1
lea ecx, [esp + 0x1c]
xor esi, esi
call fcn.004b4e58
test eax, eax
jbe 0x4ca56b
mov eax, dword [ebx + 0x24]
push esi
lea ecx, [esp + 0x20]
mov edx, dword [eax + esi*4]
mov dword [esp + 0x18], edx
call fcn.004b4f08
push eax
lea ecx, [esp + 0x38]
call fcn.004b4218
push 0x4d0bec
lea ecx, [esp + 0x38]
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx + 4], eax
push 0x4d5bf8
lea ecx, [esp + 0x38]
call fcn.004b5078
push eax
call fcn.00477948
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x34]
push 0x4d0b08
mov dword [edx], eax
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [esp + 0x18]
add esp, 4
inc esi
mov dword [ecx + 8], eax
lea ecx, [esp + 0x1c]
call fcn.004b4e58
cmp esi, eax
jb 0x4ca4e2
push 0x4d5bf0
lea ecx, [esp + 0x50]
call fcn.004b5078
push eax
lea ecx, [esp + 0x20]
call fcn.004b4218
lea ecx, [esp + 0x1c]
call fcn.004b4318
cmp eax, 7
jne 0x4ca5c5
push 0x4d0bec
lea ecx, [esp + 0x20]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [ebx + 0x30], eax
push 0x4d0b08
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
mov dword [ebx + 0x34], eax
push 0x4d5be8
lea ecx, [esp + 0x50]
call fcn.004b5078
push eax
lea ecx, [esp + 0x20]
call fcn.004b4218
lea ecx, [esp + 0x1c]
call fcn.004b4318
cmp eax, 7
jne 0x4ca668
push 0x4d0bd0
lea ecx, [esp + 0x20]
mov dword [ebx + 0x38], 1
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [ebx + 0x3c], eax
push 0x4d5bdc
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [ebx + 0x44], eax
push 0x4d0b58
call fcn.004b5078
lea edx, [esp + 0x2c]
push eax
push edx
call fcn.00477a28
add esp, 8
push eax
lea ecx, [ebx + 0x40]
mov byte [esp + 0x128], 0x14
call fcn.0050d5e8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x124], 5
call fcn.0050d468
xor edi, edi
jmp 0x4ca670
xor edi, edi
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x38], edi
push 0x4d5bd0
lea ecx, [esp + 0x50]
call fcn.004b5078
push eax
lea ecx, [esp + 0x20]
call fcn.004b4218
mov eax, dword [ebx + 0x14]
lea esi, [ebx + 0x10]
cmp eax, edi
mov dword [esp + 0x18], edi
jne 0x4ca69a
xor ecx, ecx
jmp 0x4ca6a2
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
xor eax, eax
cmp ecx, edi
jle 0x4ca6c1
mov edx, dword [ebx + 0x14]
inc eax
cmp eax, ecx
mov edx, dword [edx + eax*4 - 4]
mov dword [esp + 0x18], edx
mov dword [edx], edi
mov edx, dword [esp + 0x18]
mov dword [edx + 8], edi
jl 0x4ca6a8
lea ecx, [esp + 0x1c]
call fcn.004b4318
cmp eax, 7
jne 0x4ca98b
mov dword [esp + 0x14], 0
mov ebp, 4
mov eax, dword [ebx + 4]
xor edi, edi
cmp eax, edi
je 0x4ca98b
mov edx, dword [ebx + 8]
mov ecx, dword [esp + 0x14]
sub edx, eax
sar edx, 2
cmp ecx, edx
jae 0x4ca98b
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x10], eax
cmp dword [eax + 8], edi
jne 0x4ca722
mov dword [eax + 0x38], edi
mov eax, dword [esp + 0x10]
mov dword [eax + 0x3c], edi
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
jmp 0x4ca6e0
mov ecx, dword [eax]
push ecx
mov ecx, dword [esp + 0x34]
push ebx
call fcn.004d1848
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x4ca785
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
mov eax, dword [edx]
push eax
push ecx
call fcn.00475958
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x128], 0x15
call fcn.004b5078
push eax
call fcn.00477948
mov edx, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x124], 5
mov dword [edx + 8], eax
call fcn.0050d468
jmp 0x4ca940
push 0xc
call fcn.0050d486
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov edx, dword [ecx + 4]
mov ecx, dword [edx]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x60]
mov eax, dword [edx]
push eax
push ecx
call fcn.00475958
add esp, 0xc
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x128], 0x16
call fcn.004b5078
push eax
call fcn.00477948
mov edx, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x124], 5
mov dword [edx + 8], eax
call fcn.0050d468
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x4ca8b6
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4ca817
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x4ca817
mov ecx, esi
call fcn.004e0df8
mov ebx, eax
jmp 0x4ca81c
mov ebx, 1
mov ecx, esi
call fcn.004e0df8
mov ebp, eax
add ebp, ebx
mov eax, ebp
jns 0x4ca82d
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.0050d486
add esp, 4
mov ebx, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebx
push edi
push eax
call fcn.004f0148
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], eax
push ecx
push 1
push eax
mov ecx, esi
call fcn.004e1078
mov edx, dword [esp + 0x44]
mov eax, dword [esi + 8]
add edx, 4
mov ecx, esi
push edx
push eax
push edi
call fcn.004f0148
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.004e1068
mov eax, dword [esi + 4]
push eax
call fcn.0050d474
lea ecx, [ebx + ebp*4]
add esp, 4
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.004e0df8
lea edx, [ebx + eax*4 + 4]
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x134]
mov dword [esi + 8], edx
mov ebp, 4
jmp 0x4ca940
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x4ca903
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.004f0148
mov eax, dword [esi + 8]
lea edx, [esp + 0x18]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.004e1078
mov eax, dword [esi + 8]
cmp edi, eax
je 0x4ca93d
mov ecx, dword [esp + 0x18]
mov dword [edi], ecx
add edi, ebp
cmp edi, eax
jne 0x4ca8f5
jmp 0x4ca93d
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x4c], ecx
push ecx
mov ecx, esi
call fcn.004f0148
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x4ca92a
sub eax, ebp
sub ecx, ebp
cmp eax, edi
mov edx, dword [eax]
mov dword [ecx], edx
jne 0x4ca91e
lea eax, [edi + 4]
cmp edi, eax
je 0x4ca93d
mov ecx, dword [esp + 0x18]
mov dword [edi], ecx
add edi, ebp
cmp edi, eax
jne 0x4ca931
add dword [esi + 8], ebp
mov edx, dword [esp + 0x18]
mov dword [edx], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x38], ecx
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x2c], ebp
jne 0x4ca973
mov dword [eax + 0x3c], 0
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
jmp 0x4ca6e0
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 8]
mov dword [eax + 0x3c], ecx
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
jmp 0x4ca6e0
push 0x4d1504
lea ecx, [esp + 0x50]
call fcn.004b5078
push eax
lea ecx, [esp + 0x20]
call fcn.004b4218
push 0x4d5bcc
push 0x4d5bc8
lea ecx, [esp + 0x24]
call fcn.004b5078
mov ecx, eax
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [ebx + 0x10c], eax
push 0x4d5bcc
push 0x4d5bc4
call fcn.004b5078
mov ecx, eax
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x4c]
mov dword [ebx + 0x110], eax
push 0x4d0c58
push 0x4d0c50
call fcn.004b5078
mov ecx, eax
call fcn.004b5078
push eax
lea ecx, [esp + 0x20]
call fcn.004b4218
lea eax, [ebx + 0x48]
mov ecx, 3
mov dword [eax], 0
add eax, 0x3c
dec ecx
jne 0x4caa21
lea ecx, [esp + 0x1c]
call fcn.004b4318
cmp eax, 6
jne 0x4cac16
lea ecx, [esp + 0x1c]
call fcn.004b4e58
xor edi, edi
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x4cac16
lea esi, [ebx + 0x50]
cmp edi, 3
jge 0x4cac16
push edi
lea ecx, [esp + 0x20]
call fcn.004b4f08
push eax
lea ecx, [esp + 0x38]
call fcn.004b4218
mov ebp, 1
lea eax, [esi + 0x20]
xor edx, edx
mov dword [esi - 8], ebp
mov dword [eax], edx
push 0x4d0c4c
lea ecx, [esp + 0x38]
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esi], eax
push 0x4d0bd0
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esi + 4], eax
mov dword [esi + 8], edi
push 0x4d0b08
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esi + 0xc], eax
push 0x4d0c40
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esi + 0x10], eax
push 0x4d0c34
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esi + 0x14], eax
push 0x4d0c2c
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esi + 0x18], eax
push 0x4d0c24
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esi + 0x1c], eax
push 0x4d0c1c
call fcn.004b5078
push eax
lea ecx, [esp + 0x110]
call fcn.004b4218
lea ecx, [esp + 0x10c]
mov dword [esi - 4], 0
call fcn.004b4318
cmp eax, 6
jne 0x4cac03
lea ecx, [esp + 0x10c]
mov dword [esp + 0x14], 0
call fcn.004b4e58
test eax, eax
jbe 0x4cac06
cmp dword [esp + 0x130], 1
jne 0x4cabb0
mov ecx, dword [0x4de8b0]
mov ebp, dword [ecx + 0x1fc]
jmp 0x4cabb7
mov edx, dword [esp + 0x30]
mov ebp, dword [edx + 0x54]
mov eax, dword [esp + 0x14]
push 0x4d0c4c
push eax
lea ecx, [esp + 0x114]
call fcn.004b4f08
mov ecx, eax
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
cmp eax, ebp
jne 0x4cabe8
mov dword [esi - 4], 1
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x10c]
inc ebp
mov dword [esp + 0x14], ebp
call fcn.004b4e58
cmp ebp, eax
jb 0x4cab98
jmp 0x4cac06
mov dword [esi - 4], ebp
mov eax, dword [esp + 0x2c]
inc edi
add esi, 0x3c
cmp edi, eax
jl 0x4caa59
push 0x4d0bf0
push 0x4d0c50
lea ecx, [esp + 0x54]
call fcn.004b5078
mov ecx, eax
call fcn.004b5078
push eax
lea ecx, [esp + 0x20]
call fcn.004b4218
mov eax, dword [ebx + 0xfc]
xor esi, esi
cmp eax, esi
jne 0x4cac6d
push 0x10
call fcn.0050d486
add esp, 4
cmp eax, esi
je 0x4cac65
mov cl, byte [esp + 0x4b]
mov dword [eax + 4], esi
mov byte [eax], cl
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
jmp 0x4cac67
xor eax, eax
mov dword [ebx + 0xfc], eax
mov edx, dword [esp + 0x134]
mov ebx, dword [edx + 0xfc]
mov edx, dword [ebx + 8]
mov ebp, dword [ebx + 4]
cmp edx, edx
mov eax, edx
je 0x4cac9b
mov esi, eax
mov edi, ebp
add eax, 0x14
mov ecx, 5
add ebp, 0x14
cmp eax, edx
rep movsd dword es:[edi], dword [esi]
jne 0x4cac86
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], eax
mov dword [ebx + 8], ebp
call fcn.004b4318
cmp eax, 6
jne 0x4cafa1
lea ecx, [esp + 0x1c]
call fcn.004b4e58
test eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], 0
jle 0x4cafa1
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push esi
call fcn.004b4f08
push eax
lea ecx, [esp + 0x38]
call fcn.004b4218
push 0x4d0bd0
lea ecx, [esp + 0x38]
mov dword [esp + 0x64], esi
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x64], eax
push 0x4d0bec
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x68], eax
push 0x4d0b08
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], eax
push 0x4d0be4
call fcn.004b5078
push eax
call fcn.00477948
mov esi, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x74], eax
sub ecx, esi
mov eax, 0x66666667
add esp, 4
imul ecx
sar edx, 3
mov ecx, edx
mov ebp, esi
shr ecx, 0x1f
add edx, ecx
cmp edx, 1
jae 0x4cae90
mov edi, dword [ebx + 4]
test edi, edi
je 0x4cada3
mov ecx, esi
mov eax, 0x66666667
sub ecx, edi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov ecx, edx
ja 0x4cada8
mov ecx, 1
test edi, edi
jne 0x4cadb0
xor edx, edx
jmp 0x4cadc3
sub esi, edi
mov eax, 0x66666667
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edx + ecx]
test eax, eax
mov dword [esp + 0x44], eax
jge 0x4cadd0
xor eax, eax
lea ecx, [eax + eax*4]
shl ecx, 2
push ecx
call fcn.0050d486
mov esi, dword [ebx + 4]
add esp, 4
cmp esi, ebp
mov dword [esp + 0x5c], eax
mov edi, eax
je 0x4cae00
push esi
push edi
call fcn.00495368
add esi, 0x14
add esp, 8
add edi, 0x14
cmp esi, ebp
jne 0x4cadec
lea edx, [esp + 0x60]
push edx
push edi
call fcn.00495368
mov esi, dword [ebx + 8]
add esp, 8
cmp ebp, esi
je 0x4cae2c
add edi, 0x14
push ebp
push edi
call fcn.00495368
add ebp, 0x14
add esp, 8
add edi, 0x14
cmp ebp, esi
jne 0x4cae18
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x34], eax
call fcn.0050d474
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x60]
add esp, 4
lea eax, [eax + eax*4]
lea ecx, [esi + eax*4]
mov eax, dword [ebx + 4]
test eax, eax
mov dword [ebx + 0xc], ecx
jne 0x4cae68
xor edx, edx
mov dword [ebx + 4], esi
lea ecx, [edx + edx*4 + 5]
lea edx, [esi + ecx*4]
mov dword [ebx + 8], edx
jmp 0x4caf8c
mov ecx, dword [ebx + 8]
mov dword [ebx + 4], esi
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [edx + edx*4 + 5]
lea edx, [esi + ecx*4]
mov dword [ebx + 8], edx
jmp 0x4caf8c
mov ecx, esi
mov eax, 0x66666667
sub ecx, ebp
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x4caf1d
cmp ebp, esi
mov eax, ebp
je 0x4caec3
lea edi, [eax + 0x14]
push eax
push edi
call fcn.00495368
mov eax, edi
add esp, 8
cmp eax, esi
jne 0x4caeb0
mov esi, dword [ebx + 8]
mov eax, 0x66666667
mov ecx, esi
sub ecx, ebp
imul ecx
sar edx, 3
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
sub eax, edx
je 0x4caefa
mov edi, eax
lea edx, [esp + 0x60]
push edx
push esi
call fcn.00495368
add esp, 8
add esi, 0x14
dec edi
jne 0x4caee6
mov edx, dword [ebx + 8]
mov eax, ebp
cmp ebp, edx
je 0x4caf88
mov edi, eax
add eax, 0x14
mov ecx, 5
lea esi, [esp + 0x60]
cmp eax, edx
rep movsd dword es:[edi], dword [esi]
jne 0x4caf07
jmp 0x4caf88
lea edi, [esi - 0x14]
mov dword [esp + 0x30], esi
cmp edi, esi
mov dword [esp + 0x44], edi
je 0x4caf4c
mov eax, dword [esp + 0x30]
push edi
push eax
call fcn.00495368
mov edx, dword [esp + 0x38]
add edi, 0x14
add esp, 8
add edx, 0x14
cmp edi, esi
mov dword [esp + 0x30], edx
jne 0x4caf2c
mov edx, dword [ebx + 8]
lea eax, [edx - 0x14]
cmp ebp, eax
je 0x4caf6b
sub eax, 0x14
sub edx, 0x14
mov ecx, 5
mov esi, eax
mov edi, edx
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x4caf56
lea edx, [ebp + 0x14]
mov eax, ebp
cmp ebp, edx
je 0x4caf88
mov edi, eax
add eax, 0x14
mov ecx, 5
lea esi, [esp + 0x60]
cmp eax, edx
rep movsd dword es:[edi], dword [esi]
jne 0x4caf74
add dword [ebx + 8], 0x14
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4cacd4
mov eax, dword [esp + 0xfc]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x124], 0x17
je 0x4cafd3
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4cafca
cmp al, 0xff
je 0x4cafca
dec al
mov byte [ecx], al
jmp 0x4cafd3
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xfc], esi
cmp eax, esi
mov dword [esp + 0x100], esi
mov dword [esp + 0x104], esi
je 0x4cb010
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4cb007
cmp al, 0xff
je 0x4cb007
dec al
mov byte [ecx], al
jmp 0x4cb010
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xd8], esi
cmp eax, esi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xe0], esi
je 0x4cb12a
mov ecx, dword [esp + 0xb0]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xb4], ecx
lea ecx, [eax + 0xc]
call dword [fcn.004b461c]
mov eax, dword [esp + 0xd0]
dec eax
mov dword [esp + 0xd0], eax
je 0x4cb079
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0xac]
cmp ecx, eax
jne 0x4cb11d
mov eax, dword [esp + 0xb4]
mov ecx, eax
add eax, 4
mov dword [esp + 0xb4], eax
mov ecx, dword [ecx]
push ecx
call fcn.0050d474
mov eax, dword [esp + 0xd4]
add esp, 4
cmp eax, esi
jne 0x4cb0f2
xor edx, edx
xor eax, eax
mov dword [esp + 0xb0], edx
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0xc8]
xor ecx, ecx
push edx
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc8], esi
call fcn.0050d474
add esp, 4
jmp 0x4cb11d
mov ecx, dword [esp + 0xb4]
mov eax, dword [ecx]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb0], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0xac], edx
cmp dword [esp + 0xd0], esi
jne 0x4cb034
cmp dword [esp + 0xa0], esi
je 0x4cb20f
mov edi, 4
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0xa0]
add ecx, edi
dec eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0xa0], eax
je 0x4cb16b
mov eax, ecx
mov ecx, dword [esp + 0x7c]
cmp eax, ecx
jne 0x4cb202
mov ecx, dword [esp + 0x84]
mov eax, ecx
add ecx, edi
mov dword [esp + 0x84], ecx
mov eax, dword [eax]
push eax
call fcn.0050d474
mov eax, dword [esp + 0xa4]
add esp, 4
cmp eax, esi
jne 0x4cb1dd
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x98]
xor edx, edx
push ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], esi
call fcn.0050d474
add esp, 4
jmp 0x4cb202
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x7c], edx
cmp dword [esp + 0xa0], esi
jne 0x4cb13c
lea ecx, [esp + 0x10c]
mov byte [esp + 0x124], 3
call fcn.004b4098
lea ecx, [esp + 0x34]
mov byte [esp + 0x124], 2
call fcn.004b4098
lea ecx, [esp + 0x1c]
mov byte [esp + 0x124], 1
call fcn.004b4098
lea ecx, [esp + 0x4c]
mov byte [esp + 0x124], 0
call fcn.004b4098
lea ecx, [esp + 0x12c]
mov dword [esp + 0x124], 0xffffffff
call fcn.0050d468
mov eax, 1
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret 0x10