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

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x1b4
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp + 0x5c], esi
call fcn.0046e3c9
lea ecx, [esi + 0x4c]
call fcn.004c2b8d
xor ebx, ebx
mov dword [ebp + 0x60], ebx
cmp dword [0x54977c], ebx
je 0x4c74d1
mov dword [ebp + 0x6c], ebx
mov eax, dword [0x549774]
mov ecx, dword [ebp + 0x6c]
lea edi, [ecx + eax]
test byte [edi + 8], 4
je 0x4c74bb
mov ecx, dword [edi + 0x10]
call fcn.00485df0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c71b2
sub eax, edx
lea esi, [eax + 1]
call fcn.0048f1dc
mov dword [eax + 0x18], esi
call fcn.0048f1dc
mov eax, dword [eax + 0x18]
shr eax, 0x1f
test al, 1
jne 0x4c71e6
call fcn.0048f1dc
mov eax, dword [eax + 0x18]
call fcn.00401000
mov esi, esp
jmp 0x4c71f9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [0x54f62c], eax
mov dword [0], ebx
xor esi, esi
call fcn.0048f1dc
mov dword [eax + 0x1c], esi
call fcn.0048f1dc
mov ecx, dword [edi + 0x10]
mov esi, dword [eax + 0x18]
call fcn.00485df0
mov dword [ebp + 0x74], eax
call fcn.0048f1dc
mov eax, dword [eax + 0x1c]
push esi
push dword [ebp + 0x74]
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [edi + 0x10]
add esp, 0xc
mov dword [ebp + 0x50], eax
call fcn.00485bc8
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x4c7237
sub eax, ecx
sar eax, 1
lea esi, [eax + 1]
call fcn.0048f1dc
mov dword [eax + 0x18], esi
call fcn.0048f1dc
mov eax, dword [eax + 0x18]
shr eax, 0x1f
test al, 1
jne 0x4c7272
call fcn.0048f1dc
mov eax, dword [eax + 0x18]
add eax, eax
call fcn.00401000
mov esi, esp
jmp 0x4c7285
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [0x54f62c], eax
mov dword [0], ebx
xor esi, esi
call fcn.0048f1dc
mov dword [eax + 0x1c], esi
call fcn.0048f1dc
mov ecx, dword [edi + 0x10]
mov esi, dword [eax + 0x18]
call fcn.00485bc8
mov dword [ebp + 0x74], eax
call fcn.0048f1dc
mov eax, dword [eax + 0x1c]
lea ecx, [esi + esi]
push ecx
push dword [ebp + 0x74]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x70], ebx
cmp dword [edi + 0x24], ebx
je 0x4c74b8
mov dword [ebp + 0x64], ebx
mov esi, dword [edi + 0x1c]
add esi, dword [ebp + 0x64]
xor eax, eax
mov dword [ebp + 0x74], eax
cmp dword [0x549c00], ebx
je 0x4c7350
mov ecx, dword [0x549bf8]
mov ebx, dword [ecx + eax*4]
mov eax, dword [ebx + 0x464]
test eax, eax
je 0x4c733f
cmp dword [ebx + 0x460], 0
je 0x4c733f
cmp dword [ebx + 0x478], 0
je 0x4c733f
push dword [ebp + 0x50]
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
jne 0x4c733f
push dword [esi + 8]
mov eax, dword [ebx + 0x460]
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
jne 0x4c733f
push dword [esi + 4]
mov ebx, dword [ebx + 0x478]
push ebx
call sub.MSVCRT.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x4c74a3
mov eax, dword [ebp + 0x74]
inc eax
mov dword [ebp + 0x74], eax
cmp eax, dword [0x549c00]
jne 0x4c72dd
xor ebx, ebx
push 0x188
lea eax, [ebp - 0x13c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov dword [ebp - 0x120], 1
mov ecx, dword [esi + 4]
add esp, 0xc
call fcn.00422199
mov dword [ebp - 0x11c], eax
test byte [esi + 0x3c], 2
je 0x4c7392
mov ecx, dword [0x551b7c]
mov byte [ebp - 0xe4], 0xf
jmp 0x4c739f
mov ecx, dword [0x551b78]
mov byte [ebp - 0xe4], 0xe
call fcn.00422199
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword [edi]
shl eax, 0x10
or eax, dword [ebp + 0x70]
mov dword [ebp - 0x78], eax
mov ecx, dword [esi + 8]
call fcn.004223a5
mov ecx, dword [ebp + 0x4c]
mov dword [ebp - 0x70], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x74], eax
movzx eax, word [esi + 0x30]
mov dword [ebp - 0x24], eax
movzx eax, word [esi + 0x32]
mov dword [ebp - 0x20], eax
movzx eax, word [esi + 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x14], eax
call fcn.00422199
or dword [ebp + 0x40], 0xffffffff
or dword [ebp + 0x10], 0xffffffff
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x80], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp], ebx
mov eax, dword [edi + 0x28]
cmp eax, ebx
je 0x4c748b
cmp word [eax], bx
je 0x4c748b
lea eax, [ebp + 0x58]
push eax
mov ecx, 0x549bc4
call fcn.004045a1
push dword [edi + 0x28]
mov ecx, dword [ebp + 0x58]
lea eax, [ebp + 0x68]
push eax
call fcn.00403c03
mov eax, dword [ebp + 0x68]
mov ecx, eax
neg ecx
sbb ecx, ecx
test ecx, fcn.0042ebe6
je 0x4c747f
lea ecx, [eax + 0x24]
call fcn.0048e806
mov ecx, eax
call fcn.00422199
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0x68]
mov dword [ebp + 8], ebx
mov ecx, dword [eax + 0x18]
mov dword [ebp + 0x10], ecx
lea ecx, [eax + 4]
call fcn.0048e806
mov ecx, eax
call fcn.00422199
mov dword [ebp], eax
mov ecx, dword [ebp + 0x68]
cmp ecx, ebx
je 0x4c748b
call fcn.004022c4
mov ecx, dword [ebp + 0x5c]
lea eax, [ebp + 0x57]
push eax
lea eax, [ebp - 0x13c]
push eax
add ecx, 0x4c
call fcn.004c27d2
jmp 0x4c74a5
xor ebx, ebx
inc dword [ebp + 0x70]
mov eax, dword [ebp + 0x70]
add dword [ebp + 0x64], 0x54
cmp eax, dword [edi + 0x24]
jne 0x4c72ca
mov esi, dword [ebp + 0x5c]
inc dword [ebp + 0x60]
mov eax, dword [ebp + 0x60]
add dword [ebp + 0x6c], 0x2c
cmp eax, dword [0x54977c]
jne 0x4c7192
cmp dword [esi + 0x54], ebx
jle 0x4c74fc
xor edi, edi
mov eax, dword [esi + 0x4c]
add eax, edi
push 4
mov dword [ebp + 0x58], eax
push 1
lea eax, [ebp + 0x58]
push eax
lea ecx, [esi + 0x60]
call fcn.0048e987
inc ebx
add edi, 0x188
cmp ebx, dword [esi + 0x54]
jl 0x4c74d8
call fcn.0046e3e5
lea esp, [ebp - 0x148]
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret