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

Disassembly:
push 0xffffffffffffffff
push 0x4b1c9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x5c], esi
call fcn.0050d46e
xor edi, edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x114], edi
call fcn.0050d46e
lea ecx, [esp + 0x40]
mov byte [esp + 0x114], 1
call fcn.0050d46e
lea ecx, [esp + 0x24]
mov byte [esp + 0x114], 2
call fcn.0050d46e
lea ecx, [esp + 0x18]
mov byte [esp + 0x114], 3
call fcn.0050d46e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x114], 4
call fcn.004c5a38
lea ecx, [esp + 0x48]
mov byte [esp + 0x114], 5
call fcn.0050d46e
lea ecx, [esp + 0x4c]
mov byte [esp + 0x114], 6
call fcn.0050d46e
push edi
lea ecx, [esp + 0xfc]
mov byte [esp + 0x118], 7
call fcn.004b3b78
lea ecx, [esp + 0x60]
mov byte [esp + 0x114], 8
call fcn.004af1d8
lea eax, [esp + 0x40]
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [0x4de8b0]
lea edx, [esp + 0x3c]
mov bl, 9
push ecx
push edx
lea ecx, [eax + 0xc5c]
mov byte [esp + 0x120], bl
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x64], edi
call fcn.004c9298
mov ebp, dword [esp + 0x11c]
mov ecx, dword [ebp + 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4d0ed0
call fcn.0050d630
lea ecx, [esp + 0x24]
call fcn.004c5c48
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0050d618
push ecx
mov byte [esp + 0x11c], 0xa
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d0ed8
call fcn.0050d630
lea ecx, [esp + 0x24]
mov byte [esp + 0x11c], bl
call fcn.004c5ab8
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d7518
call fcn.0050d630
lea ecx, [esp + 0x24]
call fcn.004c5c48
mov edi, dword [esp + 0x120]
mov eax, dword [edi + 0x10]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d0be4
call fcn.0050d630
lea ecx, [esp + 0x24]
call fcn.004c5c48
push ecx
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0050d618
push ecx
mov byte [esp + 0x11c], 0xb
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4ceac4
call fcn.0050d630
lea ecx, [esp + 0x24]
mov byte [esp + 0x11c], bl
call fcn.004c5ab8
push ecx
lea eax, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0050d618
push ecx
mov byte [esp + 0x11c], 0xc
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4ceab0
call fcn.0050d630
lea ecx, [esp + 0x24]
mov byte [esp + 0x11c], bl
call fcn.004c5ab8
mov eax, dword [0x4de8b0]
mov ecx, dword [ebp + 0x18]
xor edx, edx
cmp ecx, dword [eax + 0xcb0]
setne dl
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d73f8
call fcn.0050d630
lea ecx, [esp + 0x24]
call fcn.004c5c48
mov ecx, dword [0x4de8b0]
mov edx, dword [ecx + 0xcb0]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d0ec8
call fcn.0050d630
lea ecx, [esp + 0x24]
call fcn.004c5c48
mov eax, dword [edi + 4]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4d0bd0
call fcn.0050d630
lea ecx, [esp + 0x24]
call fcn.004c5c48
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x20]
call fcn.004c5a98
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x118], 0xd
call fcn.0050d5e8
lea ecx, [esp + 0x10]
mov byte [esp + 0x114], bl
call fcn.0050d468
mov edx, dword [0x4de8b0]
push 1
push 1
mov eax, dword [edx + 0x110]
lea ecx, [edx + 0x110]
call dword [eax + 4]
push 1
push 1
push 1
lea ecx, [esp + 0x30]
call fcn.00470bf8
push eax
push 0
lea ecx, [esp + 0x38]
call fcn.0050d492
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4de2c8
call fcn.0050d618
mov ecx, dword [ebp + 0x18]
mov edx, dword [edi]
mov eax, dword [ebp + 0x44]
xor ecx, edx
push ecx
mov byte [esp + 0x130], 0xe
mov edx, esp
mov dword [esp + 0x124], esp
push ecx
push 0xc
push eax
push edx
mov ecx, esi
call fcn.004f53d8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x130], bl
push ecx
mov ecx, esi
call fcn.004fa798
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x118], 0xf
call fcn.0050d5e8
lea ecx, [esp + 0x10]
mov byte [esp + 0x114], bl
call fcn.0050d468
mov edx, dword [0x4de8b0]
push 1
push 1
mov eax, dword [edx + 0x110]
lea ecx, [edx + 0x110]
call dword [eax + 4]
push 0
lea ecx, [esp + 0x1c]
call fcn.0050d492
mov cl, byte [esp + 0x47]
mov esi, eax
mov byte [esp + 0x28], cl
xor eax, eax
mov edi, esi
or ecx, 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x2c]
push edi
mov dword [esp + 0x18], edi
call dword [fcn.004b4614]
test al, al
je 0x5005b1
mov ecx, edi
mov edi, dword [esp + 0x2c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov byte [ecx + eax], 0
lea edx, [esp + 0xf8]
push 1
lea eax, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 0x10
call fcn.004af268
and eax, 0xff
xor edi, edi
mov esi, eax
mov eax, dword [esp + 0x2c]
cmp eax, edi
mov dword [esp + 0x10], esi
mov byte [esp + 0x114], bl
je 0x50060a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x500601
cmp al, 0xff
je 0x500601
dec al
mov byte [ecx], al
jmp 0x50060a
push ecx
call fcn.0050d474
add esp, 4
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call fcn.0050d48c
cmp esi, edi
je 0x50067c
push 0x4d13a0
lea ecx, [esp + 0xfc]
call fcn.004b5078
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00477a28
add esp, 8
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x118], 0x11
call fcn.0050d5e8
lea ecx, [esp + 0x10]
mov byte [esp + 0x114], bl
call fcn.0050d468
push 0x4d13ac
lea ecx, [esp + 0xfc]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
mov dword [esp + 0x10], eax
mov esi, eax
jmp 0x5006a8
mov edx, dword [esp + 0x18]
push 0x4d85a8
push edx
call dword [fcn.004b46f0]
add esp, 8
test eax, eax
jne 0x50069a
push 0x4d13c0
jmp 0x50069f
push 0x4d13b4
lea ecx, [esp + 0x4c]
call fcn.0050d47a
mov eax, dword [0x4de8b0]
push ebp
add eax, 0xc5c
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esp + 0x68]
push esi
call fcn.004fb3a8
mov esi, dword [esp + 0x124]
cmp esi, edi
je 0x5006fc
lea edx, [esp + 0x48]
mov ecx, esi
push edx
call fcn.0050d5e8
lea eax, [esp + 0x4c]
lea ecx, [esi + 4]
push eax
call fcn.0050d5e8
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0xe8]
mov byte [esp + 0x114], 0x12
cmp eax, edi
je 0x50072c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x500723
cmp al, 0xff
je 0x500723
dec al
mov byte [ecx], al
jmp 0x50072c
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xc4]
mov dword [esp + 0xe8], edi
cmp eax, edi
mov dword [esp + 0xec], edi
mov dword [esp + 0xf0], edi
je 0x500769
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x500760
cmp al, 0xff
je 0x500760
dec al
mov byte [ecx], al
jmp 0x500769
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xc4], edi
cmp eax, edi
mov dword [esp + 0xc8], edi
mov dword [esp + 0xcc], edi
je 0x500896
mov ecx, dword [esp + 0x9c]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xa0], ecx
lea ecx, [eax + 0xc]
call dword [fcn.004b461c]
mov eax, dword [esp + 0xbc]
dec eax
mov dword [esp + 0xbc], eax
je 0x5007d2
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
cmp ecx, eax
jne 0x500889
mov eax, dword [esp + 0xa0]
mov ecx, eax
add eax, 4
mov dword [esp + 0xa0], eax
mov ecx, dword [ecx]
push ecx
call fcn.0050d474
mov eax, dword [esp + 0xc0]
add esp, 4
cmp eax, edi
jne 0x50085e
lea ecx, [esp + 0x28]
call fcn.004952b8
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x9c], edx
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x94], eax
push edx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb4], esi
call fcn.0050d474
add esp, 4
jmp 0x500889
mov ecx, dword [esp + 0xa0]
mov eax, dword [ecx]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x94], eax
mov dword [esp + 0x9c], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x98], edx
cmp dword [esp + 0xbc], edi
jne 0x50078d
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x114], 8
cmp eax, edi
je 0x500974
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x8c]
add ecx, 4
dec eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x8c], eax
je 0x5008d7
mov eax, ecx
mov ecx, dword [esp + 0x68]
cmp eax, ecx
jne 0x500967
mov ecx, dword [esp + 0x70]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x70], ecx
mov eax, dword [eax]
push eax
call fcn.0050d474
mov eax, dword [esp + 0x90]
add esp, 4
cmp eax, edi
jne 0x50094b
lea ecx, [esp + 0x28]
call fcn.004952b8
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x64], eax
push ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], esi
call fcn.0050d474
add esp, 4
jmp 0x500967
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x68], edx
cmp dword [esp + 0x8c], edi
jne 0x5008ad
lea ecx, [esp + 0xf8]
mov byte [esp + 0x114], 7
call fcn.004b4098
lea ecx, [esp + 0x4c]
mov byte [esp + 0x114], 0x13
call fcn.0050d468
lea ecx, [esp + 0x48]
mov byte [esp + 0x114], 5
call fcn.0050d468
lea ecx, [esp + 0x1c]
mov byte [esp + 0x114], 4
call fcn.004c5a78
lea ecx, [esp + 0x18]
mov byte [esp + 0x114], 3
call fcn.0050d468
lea ecx, [esp + 0x24]
mov byte [esp + 0x114], 2
call fcn.0050d468
lea ecx, [esp + 0x40]
mov byte [esp + 0x114], 1
call fcn.0050d468
lea ecx, [esp + 0x3c]
mov byte [esp + 0x114], 0
call fcn.0050d468
lea ecx, [esp + 0x38]
mov dword [esp + 0x114], 0xffffffff
call fcn.0050d468
mov ecx, dword [esp + 0x10c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x108
ret 0xc