Function at 0x4d3118
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4add1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x28]
call fcn.0050d46e
xor esi, esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x138], esi
call fcn.0050d46e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x138], 1
call fcn.0050d46e
lea ecx, [esp + 0x30]
mov byte [esp + 0x138], 2
call fcn.0050d46e
lea ecx, [esp + 0x38]
mov byte [esp + 0x138], 3
call fcn.0050d46e
lea ecx, [esp + 0x50]
mov byte [esp + 0x138], 4
call fcn.004af1d8
push esi
lea ecx, [esp + 0x114]
mov byte [esp + 0x13c], 5
call fcn.004b3b78
push esi
lea ecx, [esp + 0x100]
mov byte [esp + 0x13c], 6
call fcn.004b3b78
push esi
lea ecx, [esp + 0xf0]
mov byte [esp + 0x13c], 7
call fcn.004b3b78
mov edi, dword [esp + 0x140]
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 8
mov dword [esp + 0x10], esi
lea ebp, [edi + 0x48]
mov dword [esp + 0x4c], esi
call fcn.004c5a38
mov eax, dword [0x4de8b0]
push 1
push 1
mov byte [esp + 0x140], 9
mov edx, dword [eax + 0x110]
lea ecx, [eax + 0x110]
call dword [edx + 4]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, ebx
call fcn.004c9298
mov ecx, dword [ebx + 0x54]
mov eax, dword [edi + 0x18]
push esi
push ecx
cmp eax, ecx
mov ecx, esp
jne 0x4d337b
mov dword [esp + 0x1c], esp
push 0x4d0b08
call fcn.0050d630
lea ecx, [esp + 0x28]
call fcn.004c5c48
mov ecx, dword [esp + 0x148]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d5d5c
call fcn.0050d630
lea ecx, [esp + 0x28]
call fcn.004c5c48
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0050d618
push ecx
mov byte [esp + 0x140], 0xa
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4d0ed8
call fcn.0050d630
lea ecx, [esp + 0x28]
mov byte [esp + 0x140], 9
call fcn.004c5ab8
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0050d618
push ecx
mov byte [esp + 0x140], 0xb
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4ceac4
call fcn.0050d630
lea ecx, [esp + 0x28]
mov byte [esp + 0x140], 9
call fcn.004c5ab8
mov ecx, dword [ebx + 0x54]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d0ec8
call fcn.0050d630
lea ecx, [esp + 0x28]
call fcn.004c5c48
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0050d618
push ecx
mov byte [esp + 0x140], 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4ceab0
call fcn.0050d630
lea ecx, [esp + 0x28]
mov byte [esp + 0x140], 9
call fcn.004c5ab8
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
call fcn.004c5a98
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13c], 0xd
call fcn.0050d5e8
mov byte [esp + 0x138], 9
lea ecx, [esp + 0x1c]
jmp 0x4d3523
mov dword [esp + 0x1c], esp
push 0x4d0b08
call fcn.0050d630
lea ecx, [esp + 0x28]
call fcn.004c5c48
mov ecx, dword [edi + 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d0e18
call fcn.0050d630
lea ecx, [esp + 0x28]
call fcn.004c5c48
mov edx, dword [ebx + 0x54]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d0ec8
call fcn.0050d630
lea ecx, [esp + 0x28]
call fcn.004c5c48
mov ecx, dword [0x4de8b0]
mov eax, dword [edi + 0x44]
push ecx
mov esi, esp
mov dword [esp + 0x18], esp
push ecx
lea edx, [ecx + eax*4 + 0xac8]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0050d618
push esi
call fcn.00477bb8
add esp, 4
mov byte [esp + 0x140], 0xe
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4d15f0
call fcn.0050d630
lea ecx, [esp + 0x28]
mov byte [esp + 0x140], 9
call fcn.004c5ab8
mov eax, dword [esp + 0x148]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d5d5c
call fcn.0050d630
lea ecx, [esp + 0x28]
call fcn.004c5c48
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0050d618
push ecx
mov byte [esp + 0x140], 0xf
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4d0ed8
call fcn.0050d630
lea ecx, [esp + 0x28]
mov byte [esp + 0x140], 9
call fcn.004c5ab8
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0050d618
push ecx
mov byte [esp + 0x140], 0x10
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4ceac4
call fcn.0050d630
lea ecx, [esp + 0x28]
mov byte [esp + 0x140], 9
call fcn.004c5ab8
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0050d618
push ecx
mov byte [esp + 0x140], 0x11
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4ceab0
call fcn.0050d630
lea ecx, [esp + 0x28]
mov byte [esp + 0x140], 9
call fcn.004c5ab8
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
call fcn.004c5a98
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13c], 0x12
call fcn.0050d5e8
mov byte [esp + 0x138], 9
lea ecx, [esp + 0x1c]
call fcn.0050d468
mov ecx, ebx
call fcn.004fa858
cdq
push 1
push 1
push 1
lea ecx, [esp + 0x34]
mov esi, eax
mov dword [esp + 0x4c], edx
call fcn.00470bf8
push eax
push 0
lea ecx, [esp + 0x3c]
call fcn.0050d492
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4de2c8
call fcn.0050d618
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x18]
xor ecx, eax
mov byte [esp + 0x150], 0x13
push ecx
mov edx, esp
mov dword [esp + 0x34], esp
push ecx
push 0xe
push eax
push edx
mov ecx, ebx
call fcn.004d73e8
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
mov byte [esp + 0x158], 9
call fcn.004cfd38
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x13c], 0x14
call fcn.0050d5e8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 9
call fcn.0050d468
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.0050d48c
mov ecx, ebx
call fcn.004fa858
mov ecx, dword [esp + 0x40]
cdq
add eax, esi
adc edx, ecx
mov ecx, 1
call fcn.0050ddb8
mov ecx, dword [0x4de8b0]
xor edi, edi
add ecx, 0x110
push 1
push edi
mov dword [esp + 0x1c], eax
mov edx, dword [ecx]
call dword [edx + 4]
push edi
lea ecx, [esp + 0x38]
call fcn.0050d492
mov esi, eax
mov al, byte [esp + 0xeb]
mov byte [esp + 0x3c], al
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], edi
call dword [0x4b4610]
cmp eax, edi
jae 0x4d3645
call dword [0x4b460c]
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4d366e
mov al, byte [edx - 1]
test al, al
je 0x4d366e
cmp al, 0xff
je 0x4d366e
test edi, edi
jne 0x4d3699
dec al
push edi
lea ecx, [esp + 0x40]
mov byte [edx - 1], al
call dword [fcn.004b461c]
jmp 0x4d36ca
test edi, edi
jne 0x4d3680
push 1
lea ecx, [esp + 0x40]
call dword [fcn.004b461c]
jmp 0x4d36ca
mov eax, dword [esp + 0x48]
cmp eax, 0x1f
ja 0x4d368d
cmp eax, edi
jae 0x4d36a8
push 1
lea ecx, [esp + 0x40]
call dword [fcn.004b461c]
push edi
lea ecx, [esp + 0x40]
call dword [0x4b4608]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
mov edi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x44], eax
mov byte [ecx + eax], 0
lea edx, [esp + 0x110]
push 1
lea eax, [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x144], 0x15
call fcn.004af268
and eax, 0xff
xor esi, esi
mov edi, eax
mov eax, dword [esp + 0x40]
cmp eax, esi
mov byte [esp + 0x138], 9
je 0x4d3720
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d3717
cmp al, 0xff
je 0x4d3717
dec al
mov byte [ecx], al
jmp 0x4d3720
push ecx
call fcn.0050d474
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x38]
call fcn.0050d48c
cmp edi, esi
jne 0x4d39db
mov ecx, dword [esp + 0x14c]
cmp ecx, esi
je 0x4d3748
push 0x4d13b4
call fcn.0050d47a
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4d85a8
call fcn.0050d630
push esi
mov ecx, ebx
call fcn.004d7308
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 8
call fcn.004c5a78
lea ecx, [esp + 0xec]
mov byte [esp + 0x138], 7
call fcn.004b4098
lea ecx, [esp + 0xfc]
mov byte [esp + 0x138], 6
call fcn.004b4098
lea ecx, [esp + 0x110]
mov byte [esp + 0x138], 5
call fcn.004b4098
mov eax, dword [esp + 0xd8]
mov byte [esp + 0x138], 0x16
cmp eax, esi
je 0x4d37de
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d37d5
cmp al, 0xff
je 0x4d37d5
dec al
mov byte [ecx], al
jmp 0x4d37de
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xd8], esi
cmp eax, esi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xe0], esi
je 0x4d381b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d3812
cmp al, 0xff
je 0x4d3812
dec al
mov byte [ecx], al
jmp 0x4d381b
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xac]
mov dword [esp + 0xb4], esi
cmp eax, esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], esi
je 0x4d388c
mov eax, dword [esp + 0x8c]
push esi
mov ecx, eax
add eax, 0x20
mov dword [esp + 0x90], eax
call fcn.004953a8
mov eax, dword [esp + 0xac]
dec eax
mov dword [esp + 0xac], eax
je 0x4d3877
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
cmp ecx, eax
jne 0x4d3883
lea ecx, [esp + 0x80]
call fcn.004951f8
cmp dword [esp + 0xac], esi
jne 0x4d383b
mov eax, dword [esp + 0x7c]
mov byte [esp + 0x138], 4
cmp eax, esi
je 0x4d397c
mov ebx, 4
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x7c]
add ecx, ebx
dec eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x7c], eax
je 0x4d38c8
mov eax, dword [esp + 0x58]
mov edx, ecx
cmp edx, eax
jne 0x4d3972
mov ecx, dword [esp + 0x60]
mov eax, ecx
add ecx, ebx
mov dword [esp + 0x60], ecx
mov eax, dword [eax]
push eax
call fcn.0050d474
mov eax, dword [esp + 0x80]
add esp, 4
cmp eax, esi
jne 0x4d3932
lea ecx, [esp + 0x3c]
call fcn.004952b8
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x54], eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x58], ecx
push eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edi
call fcn.0050d474
add esp, 4
jmp 0x4d3972
mov eax, dword [esp + 0x60]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x128]
call fcn.004952c8
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x12c]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
cmp dword [esp + 0x7c], esi
jne 0x4d38a5
lea ecx, [esp + 0x38]
mov byte [esp + 0x138], 3
call fcn.0050d468
lea ecx, [esp + 0x30]
mov byte [esp + 0x138], 2
call fcn.0050d468
lea ecx, [esp + 0x2c]
mov byte [esp + 0x138], 1
call fcn.0050d468
lea ecx, [esp + 0x34]
mov byte [esp + 0x138], 0
call fcn.0050d468
lea ecx, [esp + 0x28]
mov dword [esp + 0x138], 0xffffffff
call fcn.0050d468
xor eax, eax
jmp 0x4d46a4
mov edi, dword [esp + 0x14c]
push esi
lea edx, [esp + 0x114]
push edi
push edx
mov ecx, ebx
call fcn.004d1658
test eax, eax
jne 0x4d3bc0
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 8
call fcn.004c5a78
lea ecx, [esp + 0xec]
mov byte [esp + 0x138], 7
call fcn.004b4098
lea ecx, [esp + 0xfc]
mov byte [esp + 0x138], 6
call fcn.004b4098
lea ecx, [esp + 0x110]
mov byte [esp + 0x138], 5
call fcn.004b4098
mov eax, dword [esp + 0xd8]
mov byte [esp + 0x138], 0x17
cmp eax, esi
je 0x4d3a78
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d3a6f
cmp al, 0xff
je 0x4d3a6f
dec al
mov byte [ecx], al
jmp 0x4d3a78
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xd8], esi
cmp eax, esi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xe0], esi
je 0x4d3ab5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d3aac
cmp al, 0xff
je 0x4d3aac
dec al
mov byte [ecx], al
jmp 0x4d3ab5
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xac]
mov dword [esp + 0xb4], esi
cmp eax, esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], esi
je 0x4d3b26
mov eax, dword [esp + 0x8c]
push esi
mov ecx, eax
add eax, 0x20
mov dword [esp + 0x90], eax
call fcn.004953a8
mov eax, dword [esp + 0xac]
dec eax
mov dword [esp + 0xac], eax
je 0x4d3b11
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
cmp eax, ecx
jne 0x4d3b1d
lea ecx, [esp + 0x80]
call fcn.004951f8
cmp dword [esp + 0xac], esi
jne 0x4d3ad5
mov eax, dword [esp + 0x7c]
mov byte [esp + 0x138], 4
cmp eax, esi
je 0x4d3b61
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x7c]
add ecx, 4
dec eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x7c], eax
je 0x4d3b52
cmp ecx, dword [esp + 0x58]
jne 0x4d3b5b
lea ecx, [esp + 0x50]
call fcn.004951f8
cmp dword [esp + 0x7c], esi
jne 0x4d3b36
lea ecx, [esp + 0x38]
mov byte [esp + 0x138], 3
call fcn.0050d468
lea ecx, [esp + 0x30]
mov byte [esp + 0x138], 2
call fcn.0050d468
lea ecx, [esp + 0x2c]
mov byte [esp + 0x138], 1
call fcn.0050d468
lea ecx, [esp + 0x34]
mov byte [esp + 0x138], 0
call fcn.0050d468
lea ecx, [esp + 0x28]
mov dword [esp + 0x138], 0xffffffff
call fcn.0050d468
xor eax, eax
jmp 0x4d46a4
push 0x4d5bac
lea ecx, [esp + 0x114]
call fcn.004b5078
push eax
lea ecx, [esp + 0x100]
call fcn.004b4218
lea ecx, [esp + 0xfc]
call fcn.004b4318
cmp eax, 6
je 0x4d3e96
cmp edi, esi
je 0x4d3c03
push 0x4d5d04
mov ecx, edi
call fcn.0050d47a
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4d85a8
call fcn.0050d630
push esi
mov ecx, ebx
call fcn.004d7308
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 8
call fcn.004c5a78
lea ecx, [esp + 0xec]
mov byte [esp + 0x138], 7
call fcn.004b4098
lea ecx, [esp + 0xfc]
mov byte [esp + 0x138], 6
call fcn.004b4098
lea ecx, [esp + 0x110]
mov byte [esp + 0x138], 5
call fcn.004b4098
mov eax, dword [esp + 0xd8]
mov byte [esp + 0x138], 0x18
cmp eax, esi
je 0x4d3c99
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d3c90
cmp al, 0xff
je 0x4d3c90
dec al
mov byte [ecx], al
jmp 0x4d3c99
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xd8], esi
cmp eax, esi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xe0], esi
je 0x4d3cd6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d3ccd
cmp al, 0xff
je 0x4d3ccd
dec al
mov byte [ecx], al
jmp 0x4d3cd6
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xac]
mov dword [esp + 0xb4], esi
cmp eax, esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], esi
je 0x4d3d47
mov eax, dword [esp + 0x8c]
push esi
mov ecx, eax
add eax, 0x20
mov dword [esp + 0x90], eax
call fcn.004953a8
mov eax, dword [esp + 0xac]
dec eax
mov dword [esp + 0xac], eax
je 0x4d3d32
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
cmp edx, eax
jne 0x4d3d3e
lea ecx, [esp + 0x80]
call fcn.004951f8
cmp dword [esp + 0xac], esi
jne 0x4d3cf6
mov eax, dword [esp + 0x7c]
mov byte [esp + 0x138], 4
cmp eax, esi
je 0x4d3e37
mov ebx, 4
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x7c]
add ecx, ebx
dec eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x7c], eax
je 0x4d3d83
mov eax, ecx
mov ecx, dword [esp + 0x58]
cmp eax, ecx
jne 0x4d3e2d
mov ecx, dword [esp + 0x60]
mov eax, ecx
add ecx, ebx
mov dword [esp + 0x60], ecx
mov eax, dword [eax]
push eax
call fcn.0050d474
mov eax, dword [esp + 0x80]
add esp, 4
cmp eax, esi
jne 0x4d3dfc
lea ecx, [esp + 0x120]
call fcn.004952b8
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov edx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x54], eax
push ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edi
call fcn.0050d474
add esp, 4
jmp 0x4d3e2d
mov eax, dword [esp + 0x60]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x44]
call fcn.004952c8
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
cmp dword [esp + 0x7c], esi
jne 0x4d3d60
lea ecx, [esp + 0x38]
mov byte [esp + 0x138], 3
call fcn.0050d468
lea ecx, [esp + 0x30]
mov byte [esp + 0x138], 2
call fcn.0050d468
lea ecx, [esp + 0x2c]
mov byte [esp + 0x138], 1
call fcn.0050d468
lea ecx, [esp + 0x34]
mov byte [esp + 0x138], 0
call fcn.0050d468
lea ecx, [esp + 0x28]
mov dword [esp + 0x138], 0xffffffff
call fcn.0050d468
xor eax, eax
jmp 0x4d46a4
lea ecx, [esp + 0xfc]
call fcn.004b4e58
test eax, eax
je 0x4d3ed7
push 0x4d5c6c
lea ecx, [esp + 0x100]
call fcn.004b4e58
dec eax
lea ecx, [esp + 0x100]
push eax
call fcn.004b4f08
mov ecx, eax
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
jmp 0x4d3edb
mov eax, dword [esp + 0x4c]
mov edx, dword [ebx + 0x88]
cmp edx, esi
jne 0x4d3ee9
xor ecx, ecx
jmp 0x4d3ef4
mov ecx, dword [ebx + 0x8c]
sub ecx, edx
sar ecx, 2
cmp ecx, eax
jae 0x4d4085
sub eax, ecx
mov dword [esp + 0x1c], eax
push 0x40
call fcn.0050d486
xor edi, edi
mov dword [esp + 0x14], eax
mov dword [eax + 8], edi
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [eax], edi
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x1c], edi
mov edx, dword [esp + 0x10]
mov dword [edx + 0x3c], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, eax
sub ecx, eax
sar ecx, 2
cmp ecx, 1
jae 0x4d3fe6
mov edx, dword [ebp + 4]
cmp edx, edi
je 0x4d3f52
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x4d3f57
mov ecx, 1
cmp edx, edi
jne 0x4d3f5f
xor eax, eax
jmp 0x4d3f64
sub eax, edx
sar eax, 2
add eax, ecx
cmp eax, edi
mov dword [esp + 0x18], eax
jge 0x4d3f70
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.0050d486
add esp, 4
mov edi, eax
mov eax, dword [ebp + 4]
mov ecx, ebp
push edi
push esi
push eax
call fcn.004f0148
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], eax
push ecx
push 1
push eax
mov ecx, ebp
call fcn.004e1078
mov edx, dword [esp + 0x4c]
mov eax, dword [ebp + 8]
add edx, 4
mov ecx, ebp
push edx
push eax
push esi
call fcn.004f0148
mov eax, dword [ebp + 4]
push eax
mov dword [esp + 0x50], eax
call fcn.0050d474
mov ecx, dword [esp + 0x1c]
add esp, 4
lea edx, [edi + ecx*4]
mov ecx, ebp
mov dword [ebp + 0xc], edx
call fcn.004e0df8
lea eax, [edi + eax*4 + 4]
mov dword [ebp + 4], edi
mov dword [ebp + 8], eax
jmp 0x4d4076
mov ecx, eax
sub ecx, esi
sar ecx, 2
cmp ecx, 1
jae 0x4d4034
lea ecx, [esi + 4]
push ecx
push eax
push esi
mov ecx, ebp
call fcn.004f0148
mov eax, dword [ebp + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, esi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, ebp
push edx
push eax
call fcn.004e1078
mov eax, dword [ebp + 8]
cmp esi, eax
je 0x4d4072
mov ecx, dword [esp + 0x10]
mov dword [esi], ecx
add esi, 4
cmp esi, eax
jne 0x4d4025
jmp 0x4d4072
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x20], ecx
push ecx
mov ecx, ebp
call fcn.004f0148
mov ecx, dword [ebp + 8]
lea eax, [ecx - 4]
cmp esi, eax
je 0x4d405e
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, esi
mov dword [ecx], edx
jne 0x4d404f
lea eax, [esi + 4]
cmp esi, eax
je 0x4d4072
mov ecx, dword [esp + 0x10]
mov dword [esi], ecx
add esi, 4
cmp esi, eax
jne 0x4d4065
add dword [ebp + 8], 4
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x4d3f02
lea ecx, [esp + 0xfc]
call fcn.004b4e58
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
jbe 0x4d4257
push esi
lea ecx, [esp + 0x100]
call fcn.004b4f08
push eax
lea ecx, [esp + 0xf0]
call fcn.004b4218
mov edi, dword [ebp + 4]
push 0x4d5c6c
lea ecx, [esp + 0xf0]
call fcn.004b5078
push eax
call fcn.00477948
mov edx, dword [edi + eax*4 - 4]
add esp, 4
lea ecx, [esp + 0xec]
mov dword [esp + 0x10], edx
push 0x4d5c64
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0xc], eax
mov edx, dword [esp + 0x10]
push 0x4d0d48
lea ecx, [esp + 0xf0]
mov dword [edx + 0x1c], 0
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx], eax
mov edx, dword [esp + 0x10]
mov ecx, ebx
mov eax, dword [edx]
push eax
call fcn.004c9598
mov ecx, dword [esp + 0x10]
push 0x4d5c58
mov dword [ecx + 4], eax
lea ecx, [esp + 0xf0]
call fcn.004b5078
push eax
call fcn.00477948
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0xec]
push 0x4d5c48
mov dword [edx + 0x14], eax
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x18], eax
push 0x4d5c40
lea ecx, [esp + 0xf0]
call fcn.004b5078
push eax
call fcn.00477948
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0xec]
push 0x4d5c6c
mov dword [edx + 0x24], eax
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x28], eax
push 0x4d0c24
lea ecx, [esp + 0xf0]
call fcn.004b5078
push eax
call fcn.00477948
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edx + 0x2c], eax
push 0x4d5c34
lea ecx, [esp + 0xf0]
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 + 0xf0]
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 eax, dword [esp + 0x18]
mov dword [ecx + 0x10], edx
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, eax
mov dword [ecx + 8], 1
jb 0x4d409f
mov edi, dword [esp + 0x14c]
push 0x4d5d54
lea ecx, [esp + 0x114]
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [ebp + 0x100]
mov edx, dword [esp + 0x18]
add esp, 4
add ecx, eax
mov dword [ebp + 0x100], ecx
mov eax, ecx
push 0x4d0ddc
lea ecx, [esp + 0x114]
mov dword [ebp + 0x104], eax
mov dword [ebp + 0x108], edx
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x110]
mov esi, eax
push 0x4d5cf0
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [ebx + 0x5c]
mov ebp, eax
mov eax, dword [ebx + 0x60]
add ecx, ebp
add eax, esi
mov dword [ebx + 0x5c], ecx
mov ecx, dword [esp + 0x14c]
mov dword [ebx + 0x60], eax
mov eax, dword [0x4de8b0]
add esp, 4
mov eax, dword [eax + 0xab4]
mov edx, dword [eax + 0x1448]
sub edx, ecx
mov dword [eax + 0x1448], edx
mov edx, dword [0x4de8b0]
mov eax, dword [edx + 0xab4]
mov ecx, dword [eax + 0x1448]
test ecx, ecx
jge 0x4d4320
mov dword [eax + 0x1448], 0
push 0x4d1320
lea ecx, [esp + 0x110]
call fcn.0050d630
lea eax, [esp + 0x10c]
mov ecx, ebx
push eax
mov byte [esp + 0x13c], 0x19
call fcn.004cfb68
test eax, eax
je 0x4d4361
mov ecx, dword [0x4de8b0]
mov edx, dword [ecx + 0xab4]
mov ecx, dword [edx + 0x1448]
mov dword [eax + 0x18], ecx
test edi, edi
je 0x4d4389
mov edx, dword [esp + 0x140]
mov ecx, dword [ebx + 0x54]
mov eax, dword [edx + 0x18]
cmp eax, ecx
je 0x4d437c
add dword [0x4de240], ebp
mov dword [edi + 0xc], ebp
mov dword [edi + 8], 0
mov dword [edi + 0x10], esi
mov ecx, dword [ebx + 0x60]
mov edx, dword [0x4de8b0]
push ecx
mov dword [edx + 0x210], ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4d85a8
call fcn.0050d630
push 1
mov ecx, ebx
call fcn.004d7308
lea ecx, [esp + 0x10c]
mov byte [esp + 0x138], 9
call fcn.0050d468
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 8
call fcn.004c5a78
lea ecx, [esp + 0xec]
mov byte [esp + 0x138], 7
call fcn.004b4098
lea ecx, [esp + 0xfc]
mov byte [esp + 0x138], 6
call fcn.004b4098
lea ecx, [esp + 0x110]
mov byte [esp + 0x138], 5
call fcn.004b4098
mov eax, dword [esp + 0xd8]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x138], 0x1a
je 0x4d4445
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d443c
cmp al, 0xff
je 0x4d443c
dec al
mov byte [ecx], al
jmp 0x4d4445
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xd8], esi
cmp eax, esi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xe0], esi
je 0x4d4482
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d4479
cmp al, 0xff
je 0x4d4479
dec al
mov byte [ecx], al
jmp 0x4d4482
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xac]
mov dword [esp + 0xb4], esi
cmp eax, esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], esi
je 0x4d459c
mov ecx, dword [esp + 0x8c]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0x90], ecx
lea ecx, [eax + 0xc]
call dword [fcn.004b461c]
mov eax, dword [esp + 0xac]
dec eax
mov dword [esp + 0xac], eax
je 0x4d44eb
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
cmp eax, ecx
jne 0x4d458f
mov eax, dword [esp + 0x90]
mov ecx, eax
add eax, 4
mov dword [esp + 0x90], eax
mov ecx, dword [ecx]
push ecx
call fcn.0050d474
mov eax, dword [esp + 0xb0]
add esp, 4
cmp eax, esi
jne 0x4d4564
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0xa4]
xor edx, edx
push ecx
mov dword [esp + 0x88], eax
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], eax
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], esi
call fcn.0050d474
add esp, 4
jmp 0x4d458f
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x8c], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x88], edx
cmp dword [esp + 0xac], esi
jne 0x4d44a6
cmp dword [esp + 0x7c], esi
je 0x4d4647
mov edi, 4
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x7c]
add ecx, edi
dec eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x7c], eax
je 0x4d45ca
mov eax, dword [esp + 0x58]
mov edx, ecx
cmp edx, eax
jne 0x4d463d
mov ecx, dword [esp + 0x60]
mov eax, ecx
add ecx, edi
mov dword [esp + 0x60], ecx
mov eax, dword [eax]
push eax
call fcn.0050d474
mov eax, dword [esp + 0x80]
add esp, 4
cmp eax, esi
jne 0x4d4621
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x74]
xor edx, edx
push eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], esi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], esi
call fcn.0050d474
add esp, 4
jmp 0x4d463d
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x58], edx
cmp dword [esp + 0x7c], esi
jne 0x4d45ab
lea ecx, [esp + 0x38]
mov byte [esp + 0x138], 3
call fcn.0050d468
lea ecx, [esp + 0x30]
mov byte [esp + 0x138], 2
call fcn.0050d468
lea ecx, [esp + 0x2c]
mov byte [esp + 0x138], 1
call fcn.0050d468
lea ecx, [esp + 0x34]
mov byte [esp + 0x138], 0
call fcn.0050d468
lea ecx, [esp + 0x28]
mov dword [esp + 0x138], 0xffffffff
call fcn.0050d468
mov eax, 1
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x12c
ret 0x10