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

Disassembly:
push 0xffffffffffffffff
push 0x4b14d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x38]
call fcn.0050d46e
xor ebx, ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x138], ebx
call fcn.0050d46e
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 1
call fcn.0050d46e
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 2
call fcn.0050d46e
lea ecx, [esp + 0x24]
mov byte [esp + 0x138], 3
call fcn.004c5a38
lea ecx, [esp + 0x3c]
mov byte [esp + 0x138], 4
call fcn.0050d46e
lea ecx, [esp + 0x40]
mov byte [esp + 0x138], 5
call fcn.0050d46e
push ebx
lea ecx, [esp + 0x7c]
mov byte [esp + 0x13c], 6
xor edi, edi
call fcn.004b3b78
push ebx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x13c], 7
call fcn.004b3b78
push ebx
lea ecx, [esp + 0x8c]
mov byte [esp + 0x13c], 8
call fcn.004b3b78
lea ecx, [esp + 0x98]
mov byte [esp + 0x138], 9
call fcn.004af1d8
mov eax, dword [ebp + 0x48]
mov esi, dword [esp + 0x140]
cmp eax, ebx
mov byte [esp + 0x138], 0xa
je 0x4fa970
mov ecx, dword [ebp + 0x4c]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x4fa970
mov edx, dword [eax + esi*4]
mov edi, dword [edx + 0x28]
mov edx, dword [0x4de8b0]
push ebx
lea eax, [esp + 0x30]
push ebx
lea ecx, [esp + 0x40]
push eax
push ecx
lea ecx, [edx + 0x110]
call fcn.00479dc8
push ecx
lea eax, [esp + 0x30]
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 0x4ceab0
call fcn.0050d630
lea ecx, [esp + 0x2c]
mov byte [esp + 0x140], 0xa
call fcn.004c5ab8
push ecx
lea edx, [esp + 0x3c]
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 0x4d0ed8
call fcn.0050d630
lea ecx, [esp + 0x2c]
mov byte [esp + 0x140], 0xa
call fcn.004c5ab8
mov eax, dword [ebp + 0x54]
cmp dword [eax + 0x58], 1
jne 0x4faa4f
mov ecx, dword [0x4de8b0]
push ecx
lea edx, [ecx + 0xac4]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0050d618
push ecx
mov byte [esp + 0x140], 0xd
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4d0eb8
call fcn.0050d630
lea ecx, [esp + 0x2c]
mov byte [esp + 0x140], 0xa
call fcn.004c5ab8
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d0b08
call fcn.0050d630
lea ecx, [esp + 0x2c]
call fcn.004c5c48
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d7398
call fcn.0050d630
lea ecx, [esp + 0x2c]
call fcn.004c5c48
mov eax, dword [ebp + 0x54]
mov ecx, dword [eax + 0x20]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d0ec8
call fcn.0050d630
lea ecx, [esp + 0x2c]
call fcn.004c5c48
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x24]
push edx
call fcn.004c5a98
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x13c], 0xe
call fcn.0050d5e8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 0xa
call fcn.0050d468
mov eax, dword [0x4de8b0]
push 1
push 1
mov edx, dword [eax + 0x110]
lea ecx, [eax + 0x110]
call dword [edx + 4]
push 1
push 1
push 1
lea ecx, [esp + 0x2c]
call fcn.00470bf8
push eax
push ebx
lea ecx, [esp + 0x34]
call fcn.0050d492
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4d8880
call fcn.0050d618
push ecx
mov ecx, dword [ebp + 0x54]
mov eax, esp
mov dword [esp + 0x34], esp
mov edx, dword [ecx + 0x58]
push esi
push 4
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x164], 0xf
call fcn.004f53d8
lea eax, [esp + 0x38]
mov ecx, ebp
push eax
mov byte [esp + 0x158], 0xa
call fcn.004fa798
mov byte [esp + 0x138], 0x10
push eax
lea ecx, [esp + 0x14]
call fcn.0050d5e8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 0xa
call fcn.0050d468
mov ecx, dword [0x4de8b0]
push 1
add ecx, 0x110
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.0050d48c
push ebx
lea ecx, [esp + 0x14]
call fcn.0050d492
mov esi, eax
mov al, byte [esp + 0x33]
mov byte [esp + 0x54], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x58]
push ebx
call dword [fcn.004b4614]
test al, al
je 0x4fabf1
mov edi, dword [esp + 0x58]
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 + 0x58]
mov dword [esp + 0x5c], ebx
mov byte [eax + ebx], 0
lea ecx, [esp + 0x78]
push 1
lea edx, [esp + 0x58]
push ecx
push edx
lea ecx, [esp + 0xa4]
mov byte [esp + 0x144], 0x11
call fcn.004af268
and eax, 0xff
xor esi, esi
mov edi, eax
mov eax, dword [esp + 0x58]
cmp eax, esi
mov dword [esp + 0x1c], edi
mov byte [esp + 0x138], 0xa
je 0x4fac4b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4fac42
cmp al, 0xff
je 0x4fac42
dec al
mov byte [ecx], al
jmp 0x4fac4b
push ecx
call fcn.0050d474
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0050d48c
cmp edi, esi
je 0x4facee
push 0x4d0bf0
lea ecx, [esp + 0x7c]
call fcn.004b5078
push eax
lea ecx, [esp + 0x6c]
call fcn.004b4218
lea ecx, [esp + 0x68]
call fcn.004b4318
xor ecx, ecx
cmp eax, 6
sete cl
mov eax, ecx
cmp eax, esi
mov dword [esp + 0x1c], eax
jne 0x4facfc
push 0x4d13a0
lea ecx, [esp + 0x7c]
call fcn.004b5078
lea edx, [esp + 0x34]
push eax
push edx
call fcn.00477a28
add esp, 8
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x13c], 0x12
call fcn.0050d5e8
lea ecx, [esp + 0x34]
mov byte [esp + 0x138], 0xa
call fcn.0050d468
mov eax, dword [esp + 0x3c]
push 0x4d85a8
push eax
call dword [fcn.004b46f0]
add esp, 8
test eax, eax
jne 0x4facfc
push 0x4d13c0
jmp 0x4facf3
push 0x4d13b4
lea ecx, [esp + 0x40]
call fcn.0050d47a
mov ecx, dword [0x4de8b0]
mov edi, dword [esp + 0x1c]
add ecx, 0x110
push esi
lea edx, [esp + 0x14]
push ecx
push edx
push edi
mov ecx, ebp
call fcn.004fb4a8
push 0x4d85a8
lea ecx, [esp + 0x14]
call fcn.0050d47a
cmp edi, esi
je 0x4fb018
lea ecx, [esp + 0x68]
call fcn.004b4e58
test eax, eax
je 0x4fad4c
push 0x4d1414
lea ecx, [esp + 0x14]
call fcn.0050d47a
lea ecx, [esp + 0x68]
call fcn.004b4e58
test eax, eax
jbe 0x4faea0
mov bl, 0x15
push esi
lea ecx, [esp + 0x6c]
call fcn.004b4f08
push eax
lea ecx, [esp + 0x8c]
call fcn.004b4218
lea ecx, [esp + 0x88]
call fcn.004b4318
cmp eax, 7
jne 0x4faea0
test esi, esi
je 0x4fad9d
push 0x4d12f4
lea ecx, [esp + 0x14]
call fcn.0050d6a8
push 0x4d0bd0
lea ecx, [esp + 0x8c]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x88]
push eax
push 0x4d0b08
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
mov ecx, ebp
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004f6b38
mov edi, eax
push 0x4d0bec
lea ecx, [esp + 0x8c]
mov byte [esp + 0x13c], 0x13
call fcn.004b5078
push eax
call fcn.00477948
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00475958
add esp, 0xc
push 0x4d12ec
lea edx, [esp + 0x68]
push eax
push edx
mov byte [esp + 0x144], 0x14
call fcn.0050d60c
push edi
push eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x140], bl
push eax
call fcn.0050d6a2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0x16
call fcn.0050d696
lea ecx, [esp + 0x34]
mov byte [esp + 0x138], bl
call fcn.0050d468
lea ecx, [esp + 0x64]
mov byte [esp + 0x138], 0x14
call fcn.0050d468
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 0x13
call fcn.0050d468
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 0xa
call fcn.0050d468
lea ecx, [esp + 0x68]
inc esi
call fcn.004b4e58
cmp esi, eax
jb 0x4fad5f
push 0x4d0ddc
lea ecx, [esp + 0x7c]
call fcn.004b5078
push eax
call fcn.00477948
mov esi, eax
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x50], esi
add esp, 4
mov ecx, dword [eax + 0x38]
add ecx, esi
mov dword [eax + 0x38], ecx
mov ecx, dword [ebp + 0x54]
mov eax, dword [0x4de8b0]
mov edx, dword [ecx + 0x38]
test esi, esi
mov dword [eax + 0xcbc], edx
je 0x4faf5c
mov ecx, dword [esp + 0x10]
push 0x4d85a8
push ecx
call dword [fcn.004b46f0]
add esp, 8
test eax, eax
je 0x4faf02
push 0x4d12f4
lea ecx, [esp + 0x14]
call fcn.0050d6a8
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00475958
add esp, 8
push 0x4d2198
push eax
lea eax, [esp + 0x1c]
mov bl, 0x17
push eax
mov byte [esp + 0x144], bl
call fcn.0050d60c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0x18
call fcn.0050d696
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], bl
call fcn.0050d468
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 0xa
call fcn.0050d468
mov ecx, dword [esp + 0x10]
push 0x4d85a8
push ecx
call dword [fcn.004b46f0]
add esp, 8
test eax, eax
je 0x4faf81
push 0x4d0ba0
lea ecx, [esp + 0x14]
call fcn.0050d6a8
push 0x4d0eac
lea ecx, [esp + 0x7c]
call fcn.004b5078
push eax
call fcn.00477948
mov esi, dword [0x4de244]
push eax
add esi, eax
mov dword [0x4de244], esi
mov ebp, dword [ebp + 0x54]
mov edx, dword [ebp + 0x30]
add edx, eax
mov dword [ebp + 0x30], edx
lea edx, [esp + 0x20]
push edx
call fcn.00475958
add esp, 0xc
push eax
lea eax, [esp + 0x18]
mov bl, 0x19
push 0x4d74a8
push eax
mov byte [esp + 0x144], bl
call fcn.0050d612
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0x1a
call fcn.0050d696
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], bl
call fcn.0050d468
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 0xa
call fcn.0050d468
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x44]
call fcn.0050d5e8
xor esi, esi
mov edi, dword [esp + 0x144]
cmp edi, esi
je 0x4fb058
lea edx, [esp + 0x3c]
mov ecx, edi
push edx
call fcn.0050d5e8
lea eax, [esp + 0x40]
lea ecx, [edi + 4]
push eax
call fcn.0050d5e8
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov ecx, dword [esp + 0x120]
mov byte [esp + 0x138], 0x1b
cmp ecx, esi
je 0x4fb086
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x4fb07d
cmp al, 0xff
je 0x4fb07d
dec al
mov byte [ecx], al
jmp 0x4fb086
push ecx
call fcn.0050d474
add esp, 4
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x120], esi
cmp ecx, esi
mov dword [esp + 0x124], esi
mov dword [esp + 0x128], esi
je 0x4fb0c1
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x4fb0b8
cmp al, 0xff
je 0x4fb0b8
dec al
mov byte [ecx], al
jmp 0x4fb0c1
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xf4]
mov dword [esp + 0xfc], esi
cmp eax, esi
mov dword [esp + 0x100], esi
mov dword [esp + 0x104], esi
je 0x4fb1db
mov ecx, dword [esp + 0xd4]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xd8], ecx
lea ecx, [eax + 0xc]
call dword [fcn.004b461c]
mov eax, dword [esp + 0xf4]
dec eax
mov dword [esp + 0xf4], eax
je 0x4fb12a
mov edx, dword [esp + 0xd4]
mov eax, dword [esp + 0xd0]
cmp edx, eax
jne 0x4fb1ce
mov eax, dword [esp + 0xd8]
mov ecx, eax
add eax, 4
mov dword [esp + 0xd8], eax
mov ecx, dword [ecx]
push ecx
call fcn.0050d474
mov eax, dword [esp + 0xf8]
add esp, 4
cmp eax, esi
jne 0x4fb1a3
xor eax, eax
xor ecx, ecx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xec]
xor edx, edx
push eax
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], edx
mov dword [esp + 0xdc], esi
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], edx
mov dword [esp + 0xec], esi
call fcn.0050d474
add esp, 4
jmp 0x4fb1ce
mov ecx, dword [esp + 0xd8]
mov eax, dword [ecx]
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd4], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0xd0], edx
cmp dword [esp + 0xf4], esi
jne 0x4fb0e5
cmp dword [esp + 0xc4], esi
je 0x4fb2ca
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xc4]
add ecx, 4
dec eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xc4], eax
je 0x4fb217
cmp ecx, dword [esp + 0xa0]
jne 0x4fb2bd
mov ecx, dword [esp + 0xa8]
mov eax, ecx
add ecx, 4
mov dword [esp + 0xa8], ecx
mov eax, dword [eax]
push eax
call fcn.0050d474
mov eax, dword [esp + 0xc8]
add esp, 4
cmp eax, esi
jne 0x4fb292
xor edx, edx
xor eax, eax
mov dword [esp + 0xa4], edx
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0xbc]
xor ecx, ecx
push edx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xbc], esi
call fcn.0050d474
add esp, 4
xor esi, esi
jmp 0x4fb2bd
mov ecx, dword [esp + 0xa8]
mov eax, dword [ecx]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa4], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0xa0], edx
cmp dword [esp + 0xc4], esi
jne 0x4fb1e8
lea ecx, [esp + 0x88]
mov byte [esp + 0x138], 8
call fcn.004b4098
lea ecx, [esp + 0x68]
mov byte [esp + 0x138], 7
call fcn.004b4098
lea ecx, [esp + 0x78]
mov byte [esp + 0x138], 6
call fcn.004b4098
lea ecx, [esp + 0x40]
mov byte [esp + 0x138], 0x1c
call fcn.0050d468
lea ecx, [esp + 0x3c]
mov byte [esp + 0x138], 4
call fcn.0050d468
lea ecx, [esp + 0x24]
mov byte [esp + 0x138], 3
call fcn.004c5a78
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 2
call fcn.0050d468
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 1
call fcn.0050d468
lea ecx, [esp + 0x2c]
mov byte [esp + 0x138], 0
call fcn.0050d468
lea ecx, [esp + 0x38]
mov dword [esp + 0x138], 0xffffffff
call fcn.0050d468
mov ecx, dword [esp + 0x130]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x12c
ret 8