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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
test ebx, ebx
jne 0x4a20c3
call fcn.00467070
mov esi, eax
lea ebx, [esi + 0x1c]
push ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x34]
cmp dword [eax + 0x20], 0
jbe 0x4a2099
dec dword [eax + 0x20]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
push dword [ebp - 0xc]
mov ebx, dword [eax + ecx*4]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4a20aa
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x3c]
call eax
mov ebx, eax
mov dword [ebp + 0xc], eax
mov eax, dword [edi]
mov ecx, edi
mov esi, dword [ebx]
call dword [eax + 0x28]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
push eax
mov ecx, ebx
call dword [esi + 0x3c]
jmp 0x4a20fc
mov eax, dword [ebx]
mov ecx, ebx
push 0
push 0
call dword [eax + 0x34]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
push eax
mov ecx, ebx
call fcn.00468550
mov eax, dword [edi]
mov ecx, edi
mov esi, dword [ebx]
call dword [eax + 0x28]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
push eax
mov ecx, ebx
call dword [esi + 0x34]
mov eax, dword [ebx + 8]
mov ecx, edi
mov edx, dword [edi]
push dword [eax + 8]
call dword [edx + 0x78]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x84]
call eax
test al, al
je 0x4a21f7
mov esi, dword [edi + 0x24]
xor bl, bl
xor edx, edx
mov byte [ebp - 4], 0
mov byte [ebp - 0xc], bl
mov dword [ebp - 8], edx
test esi, esi
jle 0x4a21e2
mov ecx, dword [ebp + 0xc]
sub esi, edx
dec esi
imul esi, dword [edi + 0x448]
push edx
mov eax, dword [ecx]
add esi, dword [edi + 0x444]
call dword [eax + 0x5c]
mov ecx, dword [ebp - 4]
xor edx, edx
cmp dword [edi + 0x20], edx
jle 0x4a21b4
sub eax, esi
mov dword [ebp - 0x10], eax
nop
test cl, cl
jne 0x4a2178
test dword [esi], 0xff000000
mov eax, 1
movzx ecx, cl
cmovne ecx, eax
mov dword [ebp - 4], ecx
test bl, bl
jne 0x4a2196
mov eax, dword [esi]
and eax, 0xff000000
movzx ebx, bl
cmp eax, 0xff000000
mov eax, 1
cmovne ebx, eax
mov byte [ebp - 0xc], bl
mov ecx, dword [ebp - 0x10]
inc edx
mov eax, dword [esi]
xor eax, dword [ecx + esi]
and eax, 0xffffff
xor eax, dword [esi]
mov dword [ecx + esi], eax
add esi, 4
mov ecx, dword [ebp - 4]
cmp edx, dword [edi + 0x20]
jl 0x4a2160
mov edx, dword [ebp - 8]
mov esi, dword [edi + 0x24]
inc edx
mov dword [ebp - 8], edx
cmp edx, esi
jl 0x4a2136
test cl, cl
je 0x4a21e2
mov esi, dword [ebp + 0xc]
mov ecx, esi
push dword [ebp - 0xc]
mov edx, dword [esi]
call dword [edx + 0x68]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00468a90
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0xa0]
call eax
test al, al
je 0x4a2230
mov ecx, dword [edi + 0x46c]
movzx eax, cl
push eax
mov eax, ecx
sar ecx, 0x10
sar eax, 8
movzx eax, al
push eax
push ecx
mov ecx, ebx
call fcn.00468bf0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
push ecx
mov ecx, ebx
call fcn.00468a90
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8