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

Disassembly:
push 0xffffffffffffffff
push 0x4b186a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x3c]
call fcn.0050d46e
xor edi, edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x13c], edi
call fcn.0050d46e
lea ecx, [esp + 0x88]
mov byte [esp + 0x13c], 1
call fcn.0050d46e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 2
call fcn.0050d46e
lea ecx, [esp + 0x20]
mov byte [esp + 0x13c], 3
call fcn.0050d46e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13c], 4
call fcn.004c5a38
lea ecx, [esp + 0x60]
mov byte [esp + 0x13c], 5
call fcn.0050d46e
lea ecx, [esp + 0x64]
mov byte [esp + 0x13c], 6
call fcn.0050d46e
push edi
lea ecx, [esp + 0x128]
mov byte [esp + 0x140], 7
mov dword [esp + 0x14], edi
call fcn.004b3b78
push edi
lea ecx, [esp + 0x7c]
mov byte [esp + 0x140], 8
call fcn.004b3b78
lea ecx, [esp + 0x8c]
mov byte [esp + 0x13c], 9
call fcn.004af1d8
mov edx, dword [0x4de8b0]
push edi
lea eax, [esp + 0x38]
push edi
lea ecx, [esp + 0x44]
push eax
push ecx
lea ecx, [edx + 0x110]
mov byte [esp + 0x14c], 0xa
call fcn.00479dc8
mov eax, dword [ebx + 0x54]
cmp dword [eax + 0x58], 1
jne 0x4fd298
mov eax, dword [eax + 0x24]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4d0eb8
call fcn.0050d630
lea ecx, [esp + 0x34]
call fcn.004c5c48
mov ecx, dword [ebx + 0x54]
mov edx, dword [ecx + 0x20]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4d0ec8
call fcn.0050d630
lea ecx, [esp + 0x34]
call fcn.004c5c48
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.0050d618
push ecx
mov byte [esp + 0x144], 0xb
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4ceab0
call fcn.0050d630
lea ecx, [esp + 0x34]
mov byte [esp + 0x144], 0xa
call fcn.004c5ab8
mov ecx, dword [esp + 0x144]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4d0b08
call fcn.0050d630
lea ecx, [esp + 0x34]
call fcn.004c5c48
push ecx
lea edx, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0050d618
push ecx
mov byte [esp + 0x144], 0xc
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4d0ed8
call fcn.0050d630
lea ecx, [esp + 0x34]
mov byte [esp + 0x144], 0xa
call fcn.004c5ab8
mov esi, dword [esp + 0x148]
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4d7398
call fcn.0050d630
lea ecx, [esp + 0x34]
call fcn.004c5c48
lea eax, [esp + 0x14]
lea ecx, [esp + 0x2c]
push eax
call fcn.004c5a98
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x140], 0xd
call fcn.0050d5e8
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0xa
call fcn.0050d468
mov ecx, dword [0x4de8b0]
push 1
add ecx, 0x110
push 1
mov edx, dword [ecx]
call dword [edx + 4]
push 1
push 1
push 1
lea ecx, [esp + 0x2c]
call fcn.00470bf8
push eax
push edi
lea ecx, [esp + 0x34]
call fcn.0050d492
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4d8880
call fcn.0050d618
mov eax, dword [ebx + 0x54]
mov byte [esp + 0x154], 0xe
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x58]
xor ecx, esi
push ecx
mov edx, esp
mov dword [esp + 0x40], esp
push ecx
push 7
push eax
push edx
mov ecx, ebx
call fcn.004f53d8
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], 0xa
push ecx
mov ecx, ebx
call fcn.004fa798
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x140], 0xf
call fcn.0050d5e8
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0xa
call fcn.0050d468
mov edx, dword [0x4de8b0]
push 1
push edi
mov eax, dword [edx + 0x110]
lea ecx, [edx + 0x110]
call dword [eax + 4]
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.0050d48c
push edi
lea ecx, [esp + 0x20]
call fcn.0050d492
mov cl, byte [esp + 0x3b]
mov esi, eax
mov byte [esp + 0x40], cl
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x44]
push ebp
call dword [fcn.004b4614]
test al, al
je 0x4fd4c4
mov edi, dword [esp + 0x44]
mov ecx, ebp
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 + 0x44]
mov dword [esp + 0x48], ebp
mov byte [eax + ebp], 0
lea ecx, [esp + 0x124]
push 1
lea edx, [esp + 0x44]
push ecx
push edx
lea ecx, [esp + 0x98]
mov byte [esp + 0x148], 0x10
call fcn.004af268
and eax, 0xff
xor edi, edi
mov ebp, eax
mov eax, dword [esp + 0x44]
cmp eax, edi
mov dword [esp + 0x28], ebp
mov byte [esp + 0x13c], 0xa
je 0x4fd521
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4fd518
cmp al, 0xff
je 0x4fd518
dec al
mov byte [ecx], al
jmp 0x4fd521
push ecx
call fcn.0050d474
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call fcn.0050d48c
cmp ebp, edi
je 0x4fd64b
push 0x4d0c50
lea ecx, [esp + 0x128]
call fcn.004b5078
push eax
lea ecx, [esp + 0x7c]
call fcn.004b4218
lea ecx, [esp + 0x78]
call fcn.004b4318
xor ecx, ecx
cmp eax, 7
sete cl
mov eax, ecx
cmp eax, edi
mov dword [esp + 0x28], eax
jne 0x4fd5d1
push 0x4d13a0
lea ecx, [esp + 0x128]
call fcn.004b5078
lea edx, [esp + 0x14]
push eax
push edx
call fcn.00477a28
add esp, 8
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x140], 0x11
call fcn.0050d5e8
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0xa
call fcn.0050d468
mov eax, dword [esp + 0x60]
push 0x4d85a8
push eax
call dword [fcn.004b46f0]
add esp, 8
test eax, eax
jne 0x4fd5d1
push 0x4d13c0
lea ecx, [esp + 0x64]
call fcn.0050d47a
mov ebp, dword [esp + 0x28]
mov ecx, dword [0x4de8b0]
push edi
add ecx, 0x110
lea edx, [esp + 0x20]
push ecx
push edx
push ebp
mov ecx, ebx
call fcn.004fb4a8
push 0x4d85a8
lea ecx, [esp + 0x20]
call fcn.0050d47a
cmp ebp, edi
je 0x4fd8e8
push 0x4d0ddc
lea ecx, [esp + 0x128]
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [ebx + 0x54]
lea esi, [ebx + 0x44]
add esp, 4
mov edx, dword [ecx + 0x38]
add edx, eax
mov dword [ecx + 0x38], edx
mov eax, dword [ebx + 0x54]
mov edx, dword [0x4de8b0]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0xcbc], ecx
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x4fd65e
xor eax, eax
jmp 0x4fd675
push 0x4d13b4
lea ecx, [esp + 0x64]
call fcn.0050d47a
jmp 0x4fd5d5
mov eax, dword [esi + 8]
sub eax, ecx
mov ecx, dword [esp + 0x148]
sar eax, 2
cmp eax, ecx
ja 0x4fd801
mov ebp, dword [esp + 0x148]
sub ebp, eax
inc ebp
mov dword [esp + 0x14], ebp
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 [esi + 8]
mov ecx, dword [esi + 0xc]
mov edi, dword [ebx + 0x4c]
sub ecx, eax
sar ecx, 2
add esp, 4
cmp ecx, 1
jae 0x4fd766
mov ecx, esi
call fcn.004e0df8
cmp eax, 1
jbe 0x4fd6ca
mov ecx, esi
call fcn.004e0df8
mov ebp, eax
jmp 0x4fd6cf
mov ebp, 1
mov ecx, esi
call fcn.004e0df8
add eax, ebp
mov dword [esp + 0x18], eax
jns 0x4fd6e0
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.0050d486
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.004f0148
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
push ecx
push 1
push eax
mov ecx, esi
call fcn.004e1078
mov edx, dword [esp + 0x24]
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
mov eax, dword [esp + 0x1c]
add esp, 4
lea ecx, [ebp + eax*4]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.004e0df8
lea edx, [ebp + eax*4 + 4]
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x14]
mov dword [esi + 8], edx
jmp 0x4fd7f2
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x4fd7b4
lea edx, [edi + 4]
mov ecx, esi
push edx
push eax
push edi
call fcn.004f0148
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
mov edx, eax
push ecx
sub edx, edi
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.004e1078
mov eax, dword [esi + 8]
cmp edi, eax
je 0x4fd7ee
mov edx, dword [esp + 0x10]
mov dword [edi], edx
add edi, 4
cmp edi, eax
jne 0x4fd7a5
jmp 0x4fd7ee
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.004f0148
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x4fd7da
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x4fd7cb
lea eax, [edi + 4]
cmp edi, eax
je 0x4fd7ee
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
add edi, 4
cmp edi, eax
jne 0x4fd7e1
add dword [esi + 8], 4
dec ebp
mov dword [esp + 0x14], ebp
jne 0x4fd683
mov ebp, dword [esp + 0x28]
mov eax, dword [ebx + 0x48]
mov edx, dword [esp + 0x148]
push 0x4d0e88
lea ecx, [esp + 0x7c]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x14], eax
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x4c], eax
push 0x4d0c24
lea ecx, [esp + 0x7c]
call fcn.004b5078
push eax
call fcn.00477948
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x78]
push 0x4d0b08
mov dword [edx + 0x3c], eax
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x28], eax
push 0x4d0c34
lea ecx, [esp + 0x7c]
call fcn.004b5078
push eax
call fcn.00477948
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x78]
push 0x4d0e94
mov dword [edx + 0x54], eax
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x48], eax
mov edx, dword [esp + 0x10]
mov dword [edx], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x28]
push ecx
mov ecx, ebx
call fcn.004fe6c8
test eax, eax
je 0x4fd8db
mov edx, dword [eax + 0x20]
mov eax, dword [esp + 0x10]
mov dword [eax + 0x44], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x44]
mov dword [eax + 0x40], ecx
jmp 0x4fd8e6
mov edx, dword [esp + 0x10]
mov dword [edx + 0x44], 1
xor edi, edi
mov esi, dword [esp + 0x14c]
cmp esi, edi
je 0x4fd928
lea eax, [esp + 0x60]
mov ecx, esi
push eax
call fcn.0050d5e8
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esi + 4]
call fcn.0050d5e8
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x74]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x114]
mov byte [esp + 0x13c], 0x12
cmp eax, edi
je 0x4fd958
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4fd94f
cmp al, 0xff
je 0x4fd94f
dec al
mov byte [ecx], al
jmp 0x4fd958
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x114], edi
cmp eax, edi
mov dword [esp + 0x118], edi
mov dword [esp + 0x11c], edi
je 0x4fd995
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4fd98c
cmp al, 0xff
je 0x4fd98c
dec al
mov byte [ecx], al
jmp 0x4fd995
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xe8]
mov dword [esp + 0xf0], edi
cmp eax, edi
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf8], edi
je 0x4fdad7
mov ecx, dword [esp + 0xc8]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xcc], ecx
lea ecx, [eax + 0xc]
call dword [fcn.004b461c]
mov eax, dword [esp + 0xe8]
dec eax
mov dword [esp + 0xe8], eax
je 0x4fd9fe
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xc4]
cmp eax, ecx
jne 0x4fdaca
mov eax, dword [esp + 0xcc]
mov ecx, eax
add eax, 4
mov dword [esp + 0xcc], eax
mov ecx, dword [ecx]
push ecx
call fcn.0050d474
mov eax, dword [esp + 0xec]
add esp, 4
cmp eax, edi
jne 0x4fda8a
lea ecx, [esp + 0x40]
call fcn.004952b8
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0xc0], eax
push ecx
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], eax
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], esi
call fcn.0050d474
add esp, 4
jmp 0x4fdaca
mov eax, dword [esp + 0xcc]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x58]
call fcn.004952c8
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], edx
cmp dword [esp + 0xe8], edi
jne 0x4fd9b9
mov eax, dword [esp + 0xb8]
mov byte [esp + 0x13c], 9
cmp eax, edi
je 0x4fdbe5
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0xb8]
add ecx, 4
dec eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0xb8], eax
je 0x4fdb21
mov eax, ecx
mov ecx, dword [esp + 0x94]
cmp eax, ecx
jne 0x4fdbd8
mov ecx, dword [esp + 0x9c]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x9c], ecx
mov eax, dword [eax]
push eax
call fcn.0050d474
mov eax, dword [esp + 0xbc]
add esp, 4
cmp eax, edi
jne 0x4fdbad
lea ecx, [esp + 0x50]
call fcn.004952b8
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x94], ecx
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x90], eax
push ecx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], eax
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], esi
call fcn.0050d474
add esp, 4
jmp 0x4fdbd8
mov ecx, dword [esp + 0x9c]
mov eax, dword [ecx]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x98], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x94], edx
cmp dword [esp + 0xb8], edi
jne 0x4fdaee
lea ecx, [esp + 0x78]
mov byte [esp + 0x13c], 8
call fcn.004b4098
lea ecx, [esp + 0x124]
mov byte [esp + 0x13c], 7
call fcn.004b4098
lea ecx, [esp + 0x64]
mov byte [esp + 0x13c], 0x13
call fcn.0050d468
lea ecx, [esp + 0x60]
mov byte [esp + 0x13c], 5
call fcn.0050d468
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13c], 4
call fcn.004c5a78
lea ecx, [esp + 0x20]
mov byte [esp + 0x13c], 3
call fcn.0050d468
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 2
call fcn.0050d468
lea ecx, [esp + 0x88]
mov byte [esp + 0x13c], 1
call fcn.0050d468
lea ecx, [esp + 0x34]
mov byte [esp + 0x13c], 0
call fcn.0050d468
lea ecx, [esp + 0x3c]
mov dword [esp + 0x13c], 0xffffffff
call fcn.0050d468
mov ecx, dword [esp + 0x134]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x130
ret 0xc