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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52b2a2
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
lea eax, [esp + 0x4c]
push eax
call fcn.004c9d70
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x78], ebx
cmp eax, ebx
jbe 0x4c8379
mov dword [esp + 0x14], eax
push 0x18
call fcn.004f1aab
add esp, 4
cmp eax, ebx
je 0x4c8289
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax], vtable.apache::thrift::concurrency::ThreadManager::Worker.0
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebx
mov byte [eax + 0x14], 0
mov esi, eax
jmp 0x4c828b
xor esi, esi
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], esi
call fcn.004cb7d0
push esi
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.004840d5
mov byte [esp + 0x84], 1
mov edx, dword [esp + 0x30]
mov ecx, dword [edi + 0x34]
add esp, 4
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], esp
cmp eax, ebx
je 0x4c82da
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [esp + 0x34]
push edx
call eax
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x84], 2
call fcn.004c9910
mov byte [esp + 0x78], 1
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4c8337
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4c8337
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4c8337
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov byte [esp + 0x78], 0
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x4c836e
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4c836e
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4c836e
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
sub dword [esp + 0x14], 1
jne 0x4c8261
mov eax, dword [edi + 0x6c]
mov esi, dword [eax + 0x30]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
mov dword [esp + 0x1c], esi
call eax
mov ecx, dword [ebp + 8]
mov byte [esp + 0x78], 3
add dword [edi + 8], ecx
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x4c]
mov edx, dword [eax]
push eax
push ecx
push edx
push ecx
sub edi, 0xffffff80
call fcn.004cb540
mov byte [esp + 0x78], 0
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x64]
mov ebx, dword [ecx]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
lea ecx, [ecx]
mov esi, dword [esp + 0x64]
test edi, edi
je 0x4c83de
cmp edi, dword [esp + 0x4c]
je 0x4c83e3
call fcn.004f2996
cmp ebx, esi
je 0x4c85cb
test edi, edi
jne 0x4c85af
call fcn.004f2996
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4c8404
call fcn.004f2996
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x2c]
push eax
call edx
mov ecx, eax
lea esi, [esp + 0x1c]
mov byte [esp + 0x78], 4
call fcn.004cb5b0
mov byte [esp + 0x78], 6
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4c845c
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4c845c
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4c845c
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x10], 1
test edi, edi
jne 0x4c85b6
call fcn.004f2996
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4c8480
call fcn.004f2996
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x4c85bd
call fcn.004f2996
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4c84a3
call fcn.004f2996
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x14]
push eax
call edx
mov esi, eax
test edi, edi
jne 0x4c85c4
call fcn.004f2996
cmp ebx, dword [edi + 0x18]
jne 0x4c84cb
call fcn.004f2996
mov eax, dword [esi]
mov dword [esp + 0x34], eax
test eax, eax
je 0x4c84e1
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x38], edx
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x3c], ebx
test ebx, ebx
je 0x4c84ff
add ebx, 4
mov eax, 1
lock xadd dword [ebx], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x44]
push edx
add eax, 0xc0
push eax
mov byte [esp + 0x84], 8
call fcn.004c9a70
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x7c], 7
call fcn.004c8650
mov byte [esp + 0x78], 6
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4c8562
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4c8562
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [esp + 0x78], 0
mov esi, dword [esp + 0x20]
test esi, esi
je 0x4c8599
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4c8599
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4c8599
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
lea esi, [esp + 0x24]
call fcn.004cb2f0
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
jmp 0x4c83d0
mov eax, dword [edi]
jmp 0x4c83fa
mov eax, dword [edi]
jmp 0x4c8476
mov eax, dword [edi]
jmp 0x4c8499
mov edi, dword [edi]
jmp 0x4c84c1
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x7c]
mov edi, dword [ecx + 0x30]
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
mov dword [esp + 0x1c], edi
call eax
mov byte [esp + 0x78], 9
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x4c8604
nop
mov edx, dword [esi + 0x7c]
push 0
push 0
call fcn.004d1680
mov edx, dword [esi + 4]
cmp edx, dword [esi + 8]
jne 0x4c85f0
mov byte [esp + 0x78], 0
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
lea esi, [esp + 0x4c]
mov dword [esp + 0x78], 0xa
call fcn.004ca150
mov eax, dword [esp + 0x4c]
push eax
call fcn.004f1890
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4