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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4be7a2
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4ea688]
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.00472260
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x78], ebx
cmp eax, ebx
jbe 0x4708a9
mov dword [esp + 0x14], eax
push 0x18
call fcn.00491e3d
add esp, 4
cmp eax, ebx
je 0x4707b9
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 0x4707bb
xor esi, esi
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], esi
call fcn.00473a20
push esi
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.00477460
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 0x47080a
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.00471e00
mov byte [esp + 0x78], 1
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x470867
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x470867
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 0x470867
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 0x47089e
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x47089e
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 0x47089e
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
sub dword [esp + 0x14], 1
jne 0x470791
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.00473840
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 0x47090e
cmp edi, dword [esp + 0x4c]
je 0x470913
call fcn.00493a81
cmp ebx, esi
je 0x470afb
test edi, edi
jne 0x470adf
call fcn.00493a81
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x470934
call fcn.00493a81
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.004738b0
mov byte [esp + 0x78], 6
mov eax, dword [esp + 0x30]
test eax, eax
je 0x47098c
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x47098c
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 0x47098c
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 0x470ae6
call fcn.00493a81
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4709b0
call fcn.00493a81
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x470aed
call fcn.00493a81
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x4709d3
call fcn.00493a81
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 0x470af4
call fcn.00493a81
cmp ebx, dword [edi + 0x18]
jne 0x4709fb
call fcn.00493a81
mov eax, dword [esi]
mov dword [esp + 0x34], eax
test eax, eax
je 0x470a11
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 0x470a2f
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.00471f60
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x7c], 7
call fcn.00470b80
mov byte [esp + 0x78], 6
mov esi, dword [esp + 0x14]
test esi, esi
je 0x470a92
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x470a92
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 0x470ac9
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x470ac9
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 0x470ac9
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
lea esi, [esp + 0x24]
call fcn.004735f0
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
jmp 0x470900
mov eax, dword [edi]
jmp 0x47092a
mov eax, dword [edi]
jmp 0x4709a6
mov eax, dword [edi]
jmp 0x4709c9
mov edi, dword [edi]
jmp 0x4709f1
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x7c]
mov ebx, dword [ecx + 0x30]
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
mov dword [esp + 0x1c], ebx
call eax
mov byte [esp + 0x78], 9
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x470b34
nop
mov edi, dword [esi + 0x7c]
push 0
push 0
call fcn.0047b2a0
mov edx, dword [esi + 4]
cmp edx, dword [esi + 8]
jne 0x470b20
mov byte [esp + 0x78], 0
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
mov ecx, ebx
call edx
lea esi, [esp + 0x4c]
mov dword [esp + 0x78], 0xa
call fcn.00472620
mov eax, dword [esp + 0x4c]
push eax
call fcn.00491da6
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