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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa8
mov esi, edx
mov edx, dword [edx]
mov ebp, dword [esp + 0xbc]
call 0x4c505e
pop eax
cmp byte [edx + 0x14], 0
je 0x4c509a
mov dword [esp + 0x1c], eax
movzx eax, byte [ebp]
mov dword [esp], ecx
mov dword [esp + 0x70], edx
test eax, eax
je 0x4c50b6
cmp eax, 1
jne 0x4c5132
mov edx, dword [ebp + 4]
lea eax, [ebp + 0x1c]
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], eax
push dword [ebp + 0xc]
call fcn.004c8604
pop eax
jmp 0x4c50e6
mov edx, dword [esi + 4]
add ebp, 0x1c
push 0
push ebp
push dword [esi + 8]
call fcn.004c4a65
add esp, 0xb4
jmp 0x4c5209
mov edx, dword [ebp + 4]
lea edi, [esp + 0x20]
lea eax, [ebp + 0x1c]
mov ecx, edi
mov dword [esp + 0x34], eax
call fcn.004ba472
mov ebx, dword [edi]
lea ecx, [esp + 0x38]
mov edx, ebx
push dword [edi + 8]
call fcn.004c8604
pop eax
mov edx, dword [edi + 4]
mov ecx, ebx
call fcn.00448429
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x4c50f8
mov bl, byte [esp + 0x3c]
jmp 0x4c51a4
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
add ecx, dword [eax*4 + 0x4c5600]
jmp ecx
mov dword [esp + 4], esi
mov edx, dword [ebp + 4]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x18]
lea eax, [ebp + 0x1c]
lea edi, [esp + 0x74]
mov dword [esp + 0x34], eax
mov ecx, edi
push dword [ebp + 0xc]
call fcn.004c8702
pop eax
lea ecx, [esp + 0x60]
mov edx, ebx
push esi
call fcn.004c8702
pop eax
mov esi, dword [edi]
lea ebx, [esp + 0x20]
mov ecx, ebx
mov edx, esi
push dword [edi + 8]
call fcn.004c892b
pop eax
cmp byte [ebx], 0
mov dword [esp + 8], esi
je 0x4c524b
mov bl, byte [esp + 0x21]
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
call fcn.00448429
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 8]
call fcn.00448429
mov byte [esp + 0xc], bl
mov byte [esp + 0x18], 2
mov ebx, dword [esp]
mov edx, dword [esi + 4]
lea edi, [esp + 0x80]
lea eax, [esp + 0xc]
mov ecx, edi
push eax
push dword [esp + 0x38]
push dword [esi + 8]
call fcn.004c85b5
add esp, 0xc
cmp byte [edi + 0x24], 7
jne 0x4c51f5
mov edx, dword [esp + 0x70]
movzx eax, byte [ebp + 0x34]
lea esi, [esp + 0x38]
mov ecx, esi
push edi
push eax
call fcn.004c5e9e
pop eax
pop ecx
mov dl, byte [esi + 0x24]
cmp dl, 7
jne 0x4c520e
push 0xa
pop ecx
lea esi, [esp + 0x80]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
ret
push 9
pop ecx
lea eax, [esp + 0x38]
mov edi, ebx
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov cl, byte [eax + 0x27]
movzx eax, word [eax + 0x25]
cmp byte [esp + 0xa4], 7
mov byte [ebx + 0x27], cl
mov word [ebx + 0x25], ax
mov byte [ebx + 0x24], dl
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
jne 0x4c52b4
call fcn.00478cba
jmp 0x4c5203
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4c534f
mov edi, dword [esp + 0x28]
mov ecx, ebx
mov edx, edi
push 0x10
push 0x5cc5f4
call fcn.004154e3
pop ecx
pop edx
test al, al
je 0x4c53ab
mov edi, dword [esp + 0x60]
lea esi, [esp + 0x20]
mov ecx, esi
mov edx, edi
push dword [esp + 0x68]
call fcn.004c89ac
pop eax
cmp byte [esi], 0
mov esi, dword [esp + 4]
jne 0x4c54f6
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4c5522
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x28]
xor ecx, ecx
inc ecx
jmp 0x4c5562
call fcn.00448429
jmp 0x4c5203
mov esi, dword [esp + 4]
xor ebx, ebx
jmp 0x4c518a
mov ecx, ebx
mov edx, edi
push 6
push 0x5cc604
call fcn.004154e3
pop ecx
pop edx
test al, al
je 0x4c54de
mov edi, dword [esp + 0x60]
lea esi, [esp + 0x20]
mov ecx, esi
mov edx, edi
push dword [esp + 0x68]
call fcn.004c8ae7
pop eax
cmp byte [esi], 0
mov esi, dword [esp + 4]
jne 0x4c54f6
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4c5522
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x28]
push 2
pop ecx
jmp 0x4c5562
lea esi, [esp + 0x20]
mov edx, ebx
mov ecx, esi
push edi
call fcn.004c8a6b
pop eax
cmp byte [esi], 0
mov esi, dword [esp + 4]
je 0x4c5529
mov bl, byte [esp + 0x21]
jmp 0x4c518a
mov bl, 1
jmp 0x4c518a
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x6c], ebx
mov bl, 1
test ecx, ecx
je 0x4c518a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x60]
push dword [esp + 0x68]
mov dword [esp + 0x34], eax
push eax
call fcn.004c8b45
pop ecx
pop ecx
test eax, eax
je 0x4c518a
push 3
pop ecx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x30]
call fcn.00448429
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 8]
jmp 0x4c50e1