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

Disassembly:
push 0xffffffffffffffff
push 0x4b0f37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], esi
call fcn.0050d46e
xor edi, edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x140], edi
call fcn.0050d46e
lea ecx, [esp + 0x28]
mov byte [esp + 0x140], 1
call fcn.0050d46e
lea ecx, [esp + 0x20]
mov byte [esp + 0x140], 2
call fcn.0050d46e
lea ecx, [esp + 0x48]
mov byte [esp + 0x140], 3
call fcn.004c5a38
lea ecx, [esp + 0x68]
mov byte [esp + 0x140], 4
call fcn.0050d46e
lea ecx, [esp + 0x6c]
mov byte [esp + 0x140], 5
call fcn.0050d46e
push edi
lea ecx, [esp + 0x11c]
mov byte [esp + 0x144], 6
call fcn.004b3b78
push edi
lea ecx, [esp + 0x12c]
mov byte [esp + 0x144], 7
call fcn.004b3b78
push edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x144], 8
call fcn.004b3b78
lea ecx, [esp + 0x80]
mov byte [esp + 0x140], 9
call fcn.004af1d8
mov eax, dword [esi + 0x48]
lea ebp, [esi + 0x44]
cmp eax, edi
mov byte [esp + 0x140], 0xa
jne 0x4f7865
mov dword [esp + 0x10], edi
jmp 0x4f7871
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x10], ecx
mov eax, dword [0x4de8b0]
push 1
push 1
mov edx, dword [eax + 0x110]
lea ecx, [eax + 0x110]
call dword [edx + 4]
mov edx, dword [0x4de8b0]
push edi
lea eax, [esp + 0x48]
push edi
lea ecx, [esp + 0x48]
push eax
push ecx
lea ecx, [edx + 0x110]
call fcn.00479dc8
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0x20]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4d0ed0
call fcn.0050d630
lea ecx, [esp + 0x50]
call fcn.004c5c48
push ecx
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0050d618
push ecx
mov byte [esp + 0x148], 0xb
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4ceab0
call fcn.0050d630
lea ecx, [esp + 0x50]
mov byte [esp + 0x148], 0xa
call fcn.004c5ab8
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0050d618
push ecx
mov byte [esp + 0x148], 0xc
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d0ed8
call fcn.0050d630
lea ecx, [esp + 0x50]
mov byte [esp + 0x148], 0xa
call fcn.004c5ab8
mov edi, dword [esp + 0x148]
cmp edi, 1
jne 0x4f796a
mov ecx, dword [esi + 0x54]
mov edx, dword [ecx + 0x24]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4d0eb8
call fcn.0050d630
lea ecx, [esp + 0x50]
call fcn.004c5c48
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0x20]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4d0ec8
call fcn.0050d630
lea ecx, [esp + 0x50]
call fcn.004c5c48
lea edx, [esp + 0x14]
lea ecx, [esp + 0x48]
push edx
call fcn.004c5a98
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x144], 0xd
call fcn.0050d5e8
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 0xa
call fcn.0050d468
push 1
push 1
push 1
lea ecx, [esp + 0x34]
call fcn.00470bf8
xor ebx, ebx
push eax
push ebx
lea ecx, [esp + 0x3c]
call fcn.0050d492
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x4d8880
call fcn.0050d618
mov eax, dword [esi + 0x54]
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
mov edx, dword [eax + 0x20]
mov byte [esp + 0x15c], 0xe
push edx
push 3
push edi
push ecx
mov ecx, esi
call fcn.004f53d8
lea eax, [esp + 0x30]
mov ecx, esi
push eax
mov byte [esp + 0x160], 0xa
call fcn.004fa798
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x144], 0xf
call fcn.0050d5e8
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 0xa
call fcn.0050d468
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.0050d48c
mov ecx, esi
call fcn.004fa858
mov ecx, dword [0x4de8b0]
push 1
add ecx, 0x110
push ebx
mov dword [esp + 0x2c], eax
mov edx, dword [ecx]
call dword [edx + 4]
push ebx
lea ecx, [esp + 0x24]
call fcn.0050d492
mov esi, eax
mov al, byte [esp + 0x57]
mov edi, esi
mov byte [esp + 0x58], al
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x5c]
push ebx
call dword [fcn.004b4614]
test al, al
je 0x4f7acf
mov edi, dword [esp + 0x5c]
mov ecx, ebx
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 eax, dword [esp + 0x5c]
mov dword [esp + 0x60], ebx
mov byte [eax + ebx], 0
lea ecx, [esp + 0x118]
push 1
lea edx, [esp + 0x5c]
push ecx
push edx
lea ecx, [esp + 0x8c]
mov byte [esp + 0x14c], 0x10
call fcn.004af268
and eax, 0xff
mov byte [esp + 0x140], 0xa
mov esi, eax
mov eax, dword [esp + 0x5c]
test eax, eax
mov dword [esp + 0x2c], esi
je 0x4f7b2a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f7b21
cmp al, 0xff
je 0x4f7b21
dec al
mov byte [ecx], al
jmp 0x4f7b2a
push ecx
call fcn.0050d474
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.0050d48c
test esi, esi
mov esi, dword [fcn.004b46f0]
je 0x4f7c8e
push 0x4d7454
lea ecx, [esp + 0x11c]
call fcn.004b5078
push eax
lea ecx, [esp + 0x12c]
call fcn.004b4218
lea ecx, [esp + 0x128]
call fcn.004b4318
xor ecx, ecx
cmp eax, 6
sete cl
mov eax, ecx
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x4f7c98
push 0x4d13a0
lea ecx, [esp + 0x11c]
call fcn.004b5078
lea edx, [esp + 0x14]
push eax
push edx
call fcn.00477a28
add esp, 8
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x144], 0x11
call fcn.0050d5e8
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 0xa
call fcn.0050d468
mov eax, dword [esp + 0x68]
push 0x4d85a8
push eax
call esi
add esp, 8
test eax, eax
jne 0x4f7be6
push 0x4d13c0
lea ecx, [esp + 0x6c]
call fcn.0050d47a
mov eax, dword [esp + 0x20]
push 0x4d85a8
push eax
call esi
add esp, 8
xor ebp, ebp
mov ecx, dword [0x4de8b0]
mov eax, dword [esp + 0x2c]
add ecx, 0x110
push ebp
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
call fcn.004fb4a8
mov esi, dword [esp + 0x14c]
cmp esi, ebp
je 0x4f7c58
lea ecx, [esp + 0x68]
push ecx
mov ecx, esi
call fcn.0050d5e8
lea edx, [esp + 0x6c]
lea ecx, [esi + 4]
push edx
call fcn.0050d5e8
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x7c]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x108]
mov byte [esp + 0x140], 0x12
cmp eax, ebp
je 0x4f8415
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f840c
cmp al, 0xff
je 0x4f840c
dec al
mov byte [ecx], al
jmp 0x4f8415
push 0x4d13b4
jmp 0x4f7bdd
lea ecx, [esp + 0x128]
call fcn.004b4e58
mov ecx, dword [esp + 0x10]
mov ebx, eax
cmp ecx, ebx
mov dword [esp + 0x50], ebx
jle 0x4f7cd5
cmp ebx, ecx
jge 0x4f7e60
mov esi, dword [esp + 0x18]
mov edx, dword [esi + 0x48]
inc eax
cmp eax, ecx
mov edx, dword [edx + eax*4 - 4]
mov dword [edx], 0
jl 0x4f7cbe
jmp 0x4f7e60
jge 0x4f7e60
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x14], eax
push 0x5c
call fcn.0050d486
mov edi, eax
mov ecx, 0x17
xor eax, eax
mov dword [esp + 0x14], edi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0xc]
add esp, 4
mov esi, dword [eax + 0x4c]
mov eax, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
cmp ecx, 1
jae 0x4f7dc3
mov ecx, ebp
call fcn.004e0df8
cmp eax, 1
jbe 0x4f7d2e
mov ecx, ebp
call fcn.004e0df8
mov edi, eax
jmp 0x4f7d33
mov edi, 1
mov ecx, ebp
call fcn.004e0df8
add eax, edi
mov dword [esp + 0x1c], eax
jns 0x4f7d44
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 ebx, eax
push ecx
push 1
push ebx
mov ecx, ebp
call fcn.004e1078
mov edx, dword [ebp + 8]
add ebx, 4
push ebx
push edx
push esi
mov ecx, ebp
call fcn.004f0148
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
push eax
push ecx
mov ecx, ebp
call fcn.004e1068
mov eax, dword [ebp + 4]
push eax
call fcn.0050d474
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, ebp
lea eax, [edi + edx*4]
mov dword [ebp + 0xc], eax
call fcn.004e0df8
mov ebx, dword [esp + 0x50]
lea ecx, [edi + eax*4 + 4]
mov dword [ebp + 8], ecx
mov dword [ebp + 4], edi
jmp 0x4f7e51
mov edx, eax
sub edx, esi
sar edx, 2
cmp edx, 1
jae 0x4f7e13
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 ecx, dword [ebp + 8]
mov eax, esi
cmp esi, ecx
je 0x4f7e4d
mov edx, dword [esp + 0x10]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x4f7e04
jmp 0x4f7e4d
push eax
push eax
add eax, 0xfffffffc
mov ecx, ebp
push eax
call fcn.004f0148
mov ecx, dword [ebp + 8]
lea eax, [ecx - 4]
cmp esi, eax
je 0x4f7e39
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, esi
mov dword [ecx], edx
jne 0x4f7e2a
lea eax, [esi + 4]
cmp esi, eax
je 0x4f7e4d
mov ecx, dword [esp + 0x10]
mov dword [esi], ecx
add esi, 4
cmp esi, eax
jne 0x4f7e40
add dword [ebp + 8], 4
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x4f7ce3
push 0x4d7448
lea ecx, [esp + 0x11c]
call fcn.004b5078
push eax
call fcn.00477948
mov edx, dword [ebp + 4]
add esp, 4
test edx, edx
jne 0x4f7e85
xor ecx, ecx
jmp 0x4f7e8d
mov ecx, dword [ebp + 8]
sub ecx, edx
sar ecx, 2
cmp ecx, eax
jg 0x4f8015
sub eax, ecx
inc eax
mov dword [esp + 0x14], eax
push 0x5c
call fcn.0050d486
mov edi, eax
mov ecx, 0x17
xor eax, eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
add esp, 4
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [edx + 0x4c]
sub ecx, eax
sar ecx, 2
cmp ecx, 1
jae 0x4f7f78
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x4f7ee3
sub eax, ecx
sar eax, 2
cmp eax, 1
mov edi, eax
ja 0x4f7ee8
mov edi, 1
mov ecx, ebp
call fcn.004e0df8
add eax, edi
mov dword [esp + 0x1c], eax
jns 0x4f7ef9
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 ebx, eax
push ecx
push 1
push ebx
mov ecx, ebp
call fcn.004e1078
mov edx, dword [ebp + 8]
add ebx, 4
push ebx
push edx
push esi
mov ecx, ebp
call fcn.004f0148
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
push eax
push ecx
mov ecx, ebp
call fcn.004e1068
mov eax, dword [ebp + 4]
push eax
call fcn.0050d474
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, ebp
lea eax, [edi + edx*4]
mov dword [ebp + 0xc], eax
call fcn.004e0df8
mov ebx, dword [esp + 0x50]
lea ecx, [edi + eax*4 + 4]
mov dword [ebp + 8], ecx
mov dword [ebp + 4], edi
jmp 0x4f8006
mov edx, eax
sub edx, esi
sar edx, 2
cmp edx, 1
jae 0x4f7fc8
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 ecx, dword [ebp + 8]
mov eax, esi
cmp esi, ecx
je 0x4f8002
mov edx, dword [esp + 0x10]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x4f7fb9
jmp 0x4f8002
push eax
push eax
add eax, 0xfffffffc
mov ecx, ebp
push eax
call fcn.004f0148
mov ecx, dword [ebp + 8]
lea eax, [ecx - 4]
cmp esi, eax
je 0x4f7fee
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, esi
mov dword [ecx], edx
jne 0x4f7fdf
lea eax, [esi + 4]
cmp esi, eax
je 0x4f8002
mov ecx, dword [esp + 0x10]
mov dword [esi], ecx
add esi, 4
cmp esi, eax
jne 0x4f7ff5
add dword [ebp + 8], 4
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x4f7e9c
xor ebp, ebp
xor ecx, ecx
cmp ebx, ebp
mov dword [esp + 0x10], ecx
jle 0x4f7bf7
jmp 0x4f8029
xor ebp, ebp
mov esi, dword [esp + 0x18]
push ecx
mov eax, dword [esi + 0x48]
mov edi, dword [eax + ecx*4]
lea ecx, [esp + 0x12c]
call fcn.004b4f08
push eax
lea ecx, [esp + 0x34]
call fcn.004b4218
lea ecx, [esp + 0x30]
call fcn.004b4318
cmp eax, 7
jne 0x4f83de
push 0x4d743c
lea ecx, [esp + 0x34]
mov dword [edi], 1
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x30]
mov dword [edi + 0x44], eax
push 0x4d7434
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x30]
mov dword [edi + 0x30], eax
push 0x4d0b10
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x30]
mov dword [edi + 0x2c], eax
push 0x4d0c24
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x30]
mov dword [edi + 0x3c], eax
push 0x4d7428
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x30]
mov dword [edi + 0x38], eax
push 0x4d0b08
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
mov ecx, esi
mov dword [edi + 0x28], eax
push eax
call fcn.004fe6c8
cmp eax, ebp
je 0x4f8118
mov eax, dword [eax + 0x20]
mov ecx, dword [edi + 0x44]
mov dword [edi + 0x40], eax
sub eax, ecx
mov dword [edi + 0x48], eax
cmp dword [edi + 0x3c], 4
jne 0x4f81b0
mov eax, dword [edi + 0x54]
cmp eax, ebp
je 0x4f8178
push 0x4d741c
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebx, eax
call fcn.004fa858
mov ecx, eax
mov eax, 0x88888889
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
add edx, ebx
shr eax, 0x1f
xor ebp, ebp
lea eax, [eax + edx + 1]
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
lea edx, [esi + ecx*4]
mov dword [edi + 0x58], edx
jmp 0x4f81b3
push 0x4d741c
lea ecx, [esp + 0x34]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
inc eax
mov ecx, esi
lea eax, [eax + eax*2]
lea ebx, [eax + eax*4]
call fcn.004fa858
lea ecx, [eax + ebx*4]
mov eax, dword [edi + 0x58]
cmp eax, ebp
je 0x4f81ab
cmp ecx, eax
jge 0x4f81b3
mov dword [edi + 0x58], ecx
jmp 0x4f81b3
mov dword [edi + 0x58], ebp
cmp dword [edi + 0x3c], 3
je 0x4f81d3
push 0x4d7410
lea ecx, [esp + 0x34]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x3c]
cmp eax, 2
je 0x4f81e8
cmp eax, 6
je 0x4f81e8
mov dword [edi + 0xc], ebp
jmp 0x4f83f2
push 0x4d73a8
lea ecx, [esp + 0x34]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x30]
mov dword [edi + 8], eax
push 0x4d73a0
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
mov dword [edi + 4], eax
mov eax, dword [esp + 0x148]
lea ecx, [esp + 0x30]
push eax
push 0x4d0c4c
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [0x4de8b0]
add esp, 4
add ecx, 0x110
push eax
call fcn.00488518
cmp eax, ebp
mov dword [edi + 0xc], eax
je 0x4f83a6
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4f8267
lea ecx, [eax + 0x748]
jmp 0x4f828f
mov ecx, dword [eax + 0x8d8]
test ecx, ecx
je 0x4f83f2
mov edx, dword [0x4de8b0]
mov esi, dword [edx + 0x1444]
test esi, esi
je 0x4f83f2
add ecx, 0x90
test ecx, ecx
je 0x4f83f2
mov edx, dword [edi + 0x54]
test edx, edx
je 0x4f82a8
cmp edx, dword [esp + 0x24]
jge 0x4f83f2
lea ebp, [ecx + 0xc]
xor edx, edx
mov ecx, ebp
mov esi, dword [ecx - 0xc]
test esi, esi
je 0x4f82e3
mov esi, dword [eax + 0x58]
cmp esi, 1
mov esi, dword [esp + 0x18]
mov esi, dword [esi + 0x54]
jne 0x4f82ca
mov esi, dword [esi + 0x24]
jmp 0x4f82cd
mov esi, dword [esi + 0x20]
cmp dword [ecx - 4], esi
jne 0x4f82e3
mov esi, dword [esp + 0x10]
cmp dword [ecx], esi
jne 0x4f82e3
mov esi, dword [esp + 0x24]
cmp dword [ecx + 0x10], esi
jge 0x4f82ec
inc edx
add ecx, 0x3c
cmp edx, 3
jl 0x4f82af
test ebx, ebx
je 0x4f831f
cmp edx, 3
je 0x4f8309
mov ecx, dword [eax + 0x808]
mov edx, dword [esp + 0x24]
add ecx, 0x12c
cmp ecx, edx
jbe 0x4f8350
mov edx, dword [0x4de8b0]
push 0
push eax
lea ecx, [edx + 0x110]
call fcn.00483688
jmp 0x4f8350
mov eax, dword [eax + 0x8d8]
cmp edx, 3
je 0x4f833e
mov ecx, dword [eax + 0x150]
mov edx, dword [esp + 0x24]
add ecx, 0x12c
cmp ecx, edx
jbe 0x4f8350
mov edx, dword [0x4de8b0]
push eax
lea ecx, [edx + 0xc5c]
call fcn.004cbd58
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov eax, ebp
xor edx, edx
mov ebp, 1
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4f838d
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x58], ebp
mov ecx, dword [esi + 0x54]
jne 0x4f8378
mov ecx, dword [ecx + 0x24]
jmp 0x4f837b
mov ecx, dword [ecx + 0x20]
cmp dword [eax - 4], ecx
jne 0x4f838d
cmp dword [eax], ebx
jne 0x4f838d
mov ecx, dword [esp + 0x24]
cmp dword [eax + 0x10], ecx
jge 0x4f8398
inc edx
add eax, 0x3c
cmp edx, 3
jl 0x4f8361
jmp 0x4f83f2
mov edx, dword [eax + 0xc]
mov dword [edi + 0x50], edx
mov eax, dword [eax + 0x10]
mov dword [edi + 0x54], eax
jmp 0x4f83f2
push 0x4d7404
lea ecx, [esp + 0x34]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
cmp eax, ebp
je 0x4f83f2
mov edx, dword [esp + 0x24]
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x54]
cmp eax, ebp
lea ecx, [edx + ecx*4]
je 0x4f83d9
cmp ecx, eax
jae 0x4f83f2
mov dword [edi + 0x54], ecx
jmp 0x4f83f2
lea ecx, [esp + 0x30]
call fcn.004b4318
test eax, eax
jne 0x4f83f2
mov ecx, 0x17
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
inc ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x4f8027
jmp 0x4f7bf5
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x108], ebp
cmp eax, ebp
mov dword [esp + 0x10c], ebp
mov dword [esp + 0x110], ebp
je 0x4f8452
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f8449
cmp al, 0xff
je 0x4f8449
dec al
mov byte [ecx], al
jmp 0x4f8452
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xdc]
mov dword [esp + 0xe4], ebp
cmp eax, ebp
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xec], ebp
je 0x4f856e
mov ecx, dword [esp + 0xbc]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xc0], ecx
lea ecx, [eax + 0xc]
call dword [fcn.004b461c]
mov eax, dword [esp + 0xdc]
dec eax
mov dword [esp + 0xdc], eax
je 0x4f84bb
mov ecx, dword [esp + 0xbc]
mov eax, dword [esp + 0xb8]
cmp ecx, eax
jne 0x4f8561
mov eax, dword [esp + 0xc0]
mov ecx, eax
add eax, 4
mov dword [esp + 0xc0], eax
mov ecx, dword [ecx]
push ecx
call fcn.0050d474
mov eax, dword [esp + 0xe0]
add esp, 4
cmp eax, ebp
jne 0x4f8536
xor edx, edx
xor eax, eax
mov dword [esp + 0xbc], edx
mov dword [esp + 0xcc], edx
mov edx, dword [esp + 0xd4]
xor ecx, ecx
xor edi, edi
push edx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd4], edi
call fcn.0050d474
add esp, 4
jmp 0x4f8561
mov ecx, dword [esp + 0xc0]
mov eax, dword [ecx]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xbc], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0xb8], edx
cmp dword [esp + 0xdc], ebp
jne 0x4f8476
cmp dword [esp + 0xac], ebp
je 0x4f8663
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0xac]
add ecx, 4
dec eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0xac], eax
je 0x4f85ae
mov eax, ecx
mov ecx, dword [esp + 0x88]
cmp eax, ecx
jne 0x4f8654
mov ecx, dword [esp + 0x90]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x90], ecx
mov eax, dword [eax]
push eax
call fcn.0050d474
mov eax, dword [esp + 0xb0]
add esp, 4
test eax, eax
jne 0x4f8629
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0xa4]
xor edx, edx
xor esi, esi
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 0x4f8654
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
mov eax, dword [esp + 0xac]
test eax, eax
jne 0x4f857b
lea ecx, [esp + 0x30]
mov byte [esp + 0x140], 8
call fcn.004b4098
lea ecx, [esp + 0x128]
mov byte [esp + 0x140], 7
call fcn.004b4098
lea ecx, [esp + 0x118]
mov byte [esp + 0x140], 6
call fcn.004b4098
lea ecx, [esp + 0x6c]
mov byte [esp + 0x140], 0x13
call fcn.0050d468
lea ecx, [esp + 0x68]
mov byte [esp + 0x140], 4
call fcn.0050d468
lea ecx, [esp + 0x48]
mov byte [esp + 0x140], 3
call fcn.004c5a78
lea ecx, [esp + 0x20]
mov byte [esp + 0x140], 2
call fcn.0050d468
lea ecx, [esp + 0x28]
mov byte [esp + 0x140], 1
call fcn.0050d468
lea ecx, [esp + 0x44]
mov byte [esp + 0x140], 0
call fcn.0050d468
lea ecx, [esp + 0x40]
mov dword [esp + 0x140], 0xffffffff
call fcn.0050d468
mov ecx, dword [esp + 0x138]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x134
ret 8