Function at 0x4c7422
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.0046e5c1
lea ecx, [esi + 0x4c]
call fcn.004c2cb8
xor ebx, ebx
mov dword [ebp + 0x60], ebx
cmp dword [0x549784], ebx
je 0x4c7795
mov dword [ebp + 0x6c], ebx
mov eax, dword [0x54977c]
mov ecx, dword [ebp + 0x6c]
lea edi, [ecx + eax]
test byte [edi + 8], 4
je 0x4c777f
mov ecx, dword [edi + 0x10]
call fcn.00486035
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c7476
sub eax, edx
lea esi, [eax + 1]
call fcn.0048f442
mov dword [eax + 0x18], esi
call fcn.0048f442
mov eax, dword [eax + 0x18]
shr eax, 0x1f
test al, 1
jne 0x4c74aa
call fcn.0048f442
mov eax, dword [eax + 0x18]
call fcn.00401000
mov esi, esp
jmp 0x4c74bd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [0x54f634], eax
mov dword [0], ebx
xor esi, esi
call fcn.0048f442
mov dword [eax + 0x1c], esi
call fcn.0048f442
mov ecx, dword [edi + 0x10]
mov esi, dword [eax + 0x18]
call fcn.00486035
mov dword [ebp + 0x74], eax
call fcn.0048f442
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.00485e0d
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x4c74fb
sub eax, ecx
sar eax, 1
lea esi, [eax + 1]
call fcn.0048f442
mov dword [eax + 0x18], esi
call fcn.0048f442
mov eax, dword [eax + 0x18]
shr eax, 0x1f
test al, 1
jne 0x4c7536
call fcn.0048f442
mov eax, dword [eax + 0x18]
add eax, eax
call fcn.00401000
mov esi, esp
jmp 0x4c7549
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [0x54f634], eax
mov dword [0], ebx
xor esi, esi
call fcn.0048f442
mov dword [eax + 0x1c], esi
call fcn.0048f442
mov ecx, dword [edi + 0x10]
mov esi, dword [eax + 0x18]
call fcn.00485e0d
mov dword [ebp + 0x74], eax
call fcn.0048f442
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 0x4c777c
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 [0x549c08], ebx
je 0x4c7614
mov ecx, dword [0x549c00]
mov ebx, dword [ecx + eax*4]
mov eax, dword [ebx + 0x464]
test eax, eax
je 0x4c7603
cmp dword [ebx + 0x460], 0
je 0x4c7603
cmp dword [ebx + 0x478], 0
je 0x4c7603
push dword [ebp + 0x50]
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
jne 0x4c7603
push dword [esi + 8]
mov eax, dword [ebx + 0x460]
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
jne 0x4c7603
push dword [esi + 4]
mov ebx, dword [ebx + 0x478]
push ebx
call sub.MSVCRT.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x4c7767
mov eax, dword [ebp + 0x74]
inc eax
mov dword [ebp + 0x74], eax
cmp eax, dword [0x549c08]
jne 0x4c75a1
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.004221f4
mov dword [ebp - 0x11c], eax
test byte [esi + 0x3c], 2
je 0x4c7656
mov ecx, dword [0x551b84]
mov byte [ebp - 0xe4], 0xf
jmp 0x4c7663
mov ecx, dword [0x551b80]
mov byte [ebp - 0xe4], 0xe
call fcn.004221f4
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.00422400
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.004221f4
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 0x4c774f
cmp word [eax], bx
je 0x4c774f
lea eax, [ebp + 0x58]
push eax
mov ecx, 0x549bcc
call fcn.00404618
push dword [edi + 0x28]
mov ecx, dword [ebp + 0x58]
lea eax, [ebp + 0x68]
push eax
call fcn.00403c7a
mov eax, dword [ebp + 0x68]
mov ecx, eax
neg ecx
sbb ecx, ecx
test ecx, fcn.004448e5
je 0x4c7743
lea ecx, [eax + 0x24]
call fcn.0048ea50
mov ecx, eax
call fcn.004221f4
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.0048ea50
mov ecx, eax
call fcn.004221f4
mov dword [ebp], eax
mov ecx, dword [ebp + 0x68]
cmp ecx, ebx
je 0x4c774f
call fcn.004022e4
mov ecx, dword [ebp + 0x5c]
lea eax, [ebp + 0x57]
push eax
lea eax, [ebp - 0x13c]
push eax
add ecx, 0x4c
call fcn.004c28fd
jmp 0x4c7769
xor ebx, ebx
inc dword [ebp + 0x70]
mov eax, dword [ebp + 0x70]
add dword [ebp + 0x64], 0x54
cmp eax, dword [edi + 0x24]
jne 0x4c758e
mov esi, dword [ebp + 0x5c]
inc dword [ebp + 0x60]
mov eax, dword [ebp + 0x60]
add dword [ebp + 0x6c], 0x2c
cmp eax, dword [0x549784]
jne 0x4c7456
cmp dword [esi + 0x54], ebx
jle 0x4c77c0
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.0048ebd1
inc ebx
add edi, 0x188
cmp ebx, dword [esi + 0x54]
jl 0x4c779c
call fcn.0046e5dd
lea esp, [ebp - 0x148]
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret