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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x3c]
push edi
push eax
lea ecx, [esi + 0x3c]
call fcn.004bd690
mov edx, eax
mov edi, dword [esp + 0x54]
lea ebp, [esi + 0xc]
mov ecx, dword [edx]
push ebp
mov eax, dword [edx + 4]
mov dword [esp + 0x38], eax
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, edi
mov edx, dword [edx + 0xc]
dec eax
mov dword [esp + 0x3c], eax
mov eax, dword [edi]
mov dword [esp + 0x40], edx
call dword [eax + 0x68]
mov edx, dword [edi]
push ebp
mov ecx, edi
mov ebx, eax
call dword [edx + 0x60]
sub eax, ebx
push ebp
mov dword [esp + 0x2c], eax
mov ecx, edi
lea ebx, [eax + 2]
mov eax, dword [edi]
call dword [eax + 0x64]
mov ebp, dword [esi + 8]
lea ecx, [eax + ebx + 1]
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x13], 1
mov dword [esp + 0x1c], 0
push 0xa
push ebp
call fcn.00526ac0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4c539d
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x13], al
add ecx, ebp
mov dword [esp + 0x18], ecx
mov eax, ecx
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov edi, ebp
sub eax, ebp
sub edi, ecx
mov dword [esp + 0x2c], eax
add eax, edi
push edi
push edx
mov dword [esp + 0x28], eax
call fcn.004bf3e0
mov ecx, dword [esp + 0x28]
push ecx
push eax
call fcn.004bf3d0
mov edx, dword [esi + 4]
sub eax, edi
push edi
push edx
mov dword [esp + 0x3c], eax
call fcn.004bf3e0
mov ecx, dword [esp + 0x38]
push ecx
push eax
call fcn.004bf3d0
mov edx, dword [esp + 0x78]
add esp, 0x20
sub eax, edi
mov edi, ebx
push edx
push 0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
sub esp, 0x10
mov edx, dword [esp + 0x50]
sub edi, eax
mov ecx, esp
mov eax, 1
dec edi
mov dword [ecx], eax
mov eax, dword [esp + 0x54]
push ebx
mov dword [esp + 0x30], 5
mov dword [ecx + 4], edi
mov dword [ecx + 8], edx
lea edx, [esp + 0x30]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x70]
push ecx
push 0
push ebp
push edx
push eax
mov ecx, esi
call fcn.004c4fb0
mov ecx, dword [esp + 0x58]
mov eax, 1
push ecx
push 1
sub esp, 0x10
mov ecx, dword [esp + 0x54]
mov edx, esp
push ebx
mov dword [edx], eax
mov eax, dword [esp + 0x54]
mov dword [edx + 4], edi
mov dword [edx + 8], eax
mov eax, dword [esp + 0x40]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x74]
push eax
lea ecx, [esp + 0x38]
push ebp
push ecx
push edx
mov ecx, esi
call fcn.004c4fb0
mov eax, dword [esp + 0x58]
push eax
push 0
sub esp, 0x10
mov edx, dword [esp + 0x50]
mov ecx, esp
mov eax, 1
push ebx
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x74]
mov dword [ecx + 4], edi
mov edi, dword [esp + 0x5c]
mov dword [ecx + 8], edx
lea edx, [esp + 0x34]
mov dword [ecx + 0xc], edi
mov ecx, dword [esp + 0x40]
push ecx
push ebp
push edx
push eax
mov ecx, esi
call fcn.004c4fb0
mov eax, dword [esi + 0x34]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add ebx, eax
add edi, eax
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ebp, [ecx + 1]
mov dword [esp + 0x44], edi
call fcn.004bf3e0
mov dword [esp + 0x24], eax
mov al, byte [esp + 0x1b]
add esp, 8
test al, al
jne 0x4c5374
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 8