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

Disassembly:
push 0xffffffffffffffff
push 0x5642c0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x7c]
xor ebx, ebx
cmp eax, ebx
je 0x4e5388
cmp dword [eax + 4], 2
jne 0x4e5167
mov eax, dword [eax + 0x10]
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x4e5388
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x78]
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x7c], ebx
call fcn.00402f20
mov ecx, dword [eax + 4]
push ebx
push ecx
lea edx, [esp + 0x24]
push esi
push edx
mov byte [esp + 0x7c], 1
call fcn.004e2980
mov edi, eax
mov ebp, vtable.cWCS.0
add esp, 0x10
lea ecx, [esp + 0x44]
mov dword [esp + 0x28], edi
mov byte [esp + 0x6c], bl
mov dword [esp + 0x44], ebp
call fcn.0049ee80
mov ecx, dword [esp + 0x1c]
cmp edi, ebx
jne 0x4e517e
mov dword [esp + 0x6c], 0xffffffff
cmp ecx, ebx
je 0x4e5167
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
or eax, 0xffffffff
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp ecx, ebx
je 0x4e5167
cmp esi, ebx
sete byte [esp + 0x17]
xor eax, eax
mov dword [esp + 0x20], eax
cmp dword [esp + 0x24], ebx
jbe 0x4e5374
lea esp, [esp]
cmp byte [0x5beade], bl
jne 0x4e539e
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 0x14]
mov esi, dword [edx + eax*4]
push ebx
push str.taskSetId
push esi
mov dword [esp + 0x24], ebx
call fcn.004fe610
add esp, 0xc
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
cmp byte [esp + 0x80], bl
je 0x4e51f2
cmp eax, dword [0x5b2fa8]
jne 0x4e535d
cmp edx, dword [0x5b2fac]
jne 0x4e535d
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x3c]
call fcn.0049eff0
mov dword [esp + 0x34], vtable.cWCStr.0
mov eax, dword [esp + 0x78]
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x7c], 2
call fcn.00402f20
mov edx, dword [eax + 4]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x78]
push ebx
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
push esi
lea eax, [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x94], 3
call fcn.00504180
add esp, 0x28
lea ecx, [esp + 0x54]
mov edi, eax
mov byte [esp + 0x6c], 2
mov dword [esp + 0x54], ebp
call fcn.0049ee80
cmp edi, ebx
je 0x4e527b
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], bl
mov dword [esp + 0x34], ebp
call fcn.0049ee80
jmp 0x4e535d
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4e5299
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], bl
mov dword [esp + 0x34], ebp
call fcn.0049ee80
jmp 0x4e535d
mov ecx, dword [eax + 0xdc]
mov edx, dword [eax + 0xd8]
mov edi, dword [esp + 0x28]
push ecx
push edx
mov ecx, edi
call fcn.004d36f0
cmp eax, ebx
je 0x4e52dc
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x4e52c6
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], bl
mov dword [esp + 0x34], ebp
call fcn.0049ee80
jmp 0x4e535d
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xe4]
mov edx, dword [eax + 0xe0]
push ebx
push ebx
push ecx
push edx
push ebx
push ebx
push eax
push edi
call fcn.004e21c0
mov edi, eax
add esp, 0x20
cmp edi, ebx
je 0x4e52b6
mov eax, dword [edi]
push esi
push eax
call fcn.00500500
mov edi, dword [edi]
add esp, 8
cmp byte [esp + 0x17], bl
je 0x4e5326
mov ecx, dword [esp + 0x18]
call fcn.0043dc60
mov ecx, edi
call fcn.004de850
mov ebx, dword [esp + 0x18]
call fcn.004e48b0
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
push ecx
push edx
mov ecx, edi
call fcn.004e46e0
add esp, 8
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 0
mov dword [esp + 0x34], ebp
call fcn.0049ee80
xor ebx, ebx
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x24]
jb 0x4e51a0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x6c], 0xffffffff
cmp ecx, ebx
je 0x4e5388
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
xor eax, eax
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov ecx, dword [esp + 0x1c]
jmp 0x4e5153