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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4c5b34
push ecx
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c5d9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41c03c]
call fcn.00403538
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x41c03c]
call fcn.00403538
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
call fcn.004042f8
lea eax, [ebp - 0x14]
call fcn.004042f8
mov byte [ebp - 0x16], 0
xor eax, eax
push ebp
push 0x4c5d6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov edx, esi
call fcn.004bc0a4
mov ebx, 1
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
call fcn.004bc554
mov eax, dword [ebp - 0x20]
mov edx, 0x4c5db8
call fcn.00404704
jne 0x4c5c31
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
call fcn.004bc518
mov eax, dword [ebp - 0x24]
mov edx, 0x4c5dc4
call fcn.004088a0
test eax, eax
jne 0x4c5c31
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov ebx, dword [eax + 0x50]
jmp 0x4c5bec
inc ebx
mov eax, esi
call fcn.004045b8
cmp ebx, eax
jg 0x4c5bfe
cmp byte [esi + ebx - 1], 0xd
jne 0x4c5beb
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov edi, dword [eax + 0x50]
mov ecx, ebx
sub ecx, edi
mov edx, edi
mov eax, esi
call fcn.00404818
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00408a48
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.004c4734
add ebx, 2
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov edx, ebx
call fcn.004bc09c
push ebp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
mov edx, 0x4c5dd8
call fcn.004bb07c
call fcn.004c51d0
pop ecx
test al, al
je 0x4c5d2d
cmp dword [ebp - 0xc], 0
jne 0x4c5d2d
lea eax, [ebp - 0xc]
call fcn.004042f8
lea eax, [ebp - 0x14]
call fcn.004042f8
mov dl, 1
mov eax, dword [0x41c32c]
call fcn.00403538
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4c5d26
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4c5de8
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov ecx, 0x4c5e08
mov edx, 1
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov edx, 0x4c5e1c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x78]
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.004211cc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x1c]
call fcn.004bb2fc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
mov edx, 0x4c5e30
call fcn.004bb07c
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
call fcn.004bafa4
pop edx
call fcn.004bb26c
mov byte [ebp - 0x16], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5d2d
mov eax, dword [ebp - 0x1c]
call fcn.00403568
ret
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
add eax, 0x3c
mov edx, dword [ebp - 0x14]
call fcn.0040434c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
add eax, 0x38
mov edx, dword [ebp - 0xc]
call fcn.0040434c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5d74
mov eax, dword [ebp - 0x10]
call fcn.00403568
mov eax, dword [ebp - 4]
call fcn.00403568
ret