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

Disassembly:
sub esp, 0xac
mov eax, dword [0x5ec3c8]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xbc]
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
mov edi, dword [esi]
mov ebx, dword [edi + 8]
mov dword [esp + 0x20], ebx
lea eax, [ebx - 0x8000]
mov dword [esi + 8], eax
add eax, eax
push eax
push ebp
push ebp
push dword [edi + 0x54]
call fcn.0049ed60
mov dword [esi + 4], eax
add esp, 0x10
lea ecx, [eax - 0x10000]
mov dword [esp + 0x1c], ecx
mov ecx, 0x8000
mov word [eax], cx
xor eax, eax
mov ecx, edi
mov dword [edi + 0x7a], 0x11800000
mov word [edi + 0x78], ax
call fcn.004e0060
movzx esi, word [edi + 6]
mov dword [esp + 0x2c], esi
lea eax, [esi*2 - 2]
cmp eax, dword [edi + 0x120]
jbe 0x4c4171
push eax
push edi
call fcn.004c62f0
add esp, 8
mov edx, dword [edi + 0x1c]
lea esi, [esi + esi*2]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffffe
movzx ecx, byte [edx + esi*4 - 2]
imul ecx, eax
mov eax, dword [edi + 0x18]
lea eax, [ecx + eax*2]
cmp eax, dword [edi + 0x12c]
jbe 0x4c41a1
push eax
push edi
call fcn.004c6330
mov edx, dword [edi + 0x1c]
add esp, 8
mov ecx, dword [edx + esi*4 - 0xc]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x18], 0x8001
lea eax, [eax + ecx*4]
mov dword [esp + 0x28], eax
movzx eax, byte [edx + esi*4 - 2]
mov edx, dword [esp + 0x28]
mov dword [edx + eax*4], 0xff000000
mov ecx, dword [edi + 0x1c]
lea eax, [edx + eax*4]
mov dword [esp + 0x34], eax
lea esi, [ecx + 0xc]
mov dword [esp + 0x24], esi
cmp ebx, 0x8001
jbe 0x4c4418
mov ebx, 0x8001
nop dword [eax]
movzx eax, word [esi + 4]
cmp ebx, eax
jb 0x4c420e
push dword [esp + 0x1c]
push edx
push esi
push edi
call fcn.004c3f50
add esp, 0x10
add esi, 0xc
mov dword [esp + 0x24], esi
mov eax, dword [edi + 0x10]
movzx ebp, word [eax + ebx*8]
lea esi, [eax + ebx*8]
mov eax, dword [esp + 0x1c]
mov edx, ebp
cmp edx, 0x8000
jb 0x4c422a
movzx edx, word [eax + edx*2]
movzx ebx, word [esi + 2]
mov ecx, ebx
cmp ecx, 0x8000
jb 0x4c423c
movzx ecx, word [eax + ecx*2]
movzx eax, byte [esi + 5]
test byte [eax + 0x5926a0], 0x60
jne 0x4c4262
cmp edx, ebp
jne 0x4c4262
cmp ecx, ebx
jne 0x4c4262
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov word [eax + ebx*2], bx
jmp 0x4c43f9
mov al, byte [esi + 4]
mov ebx, 0xffbf
mov byte [esp + 0x17], al
mov ax, word [esi + 4]
and ax, bx
mov word [edi + 0x7a], cx
mov ecx, edi
mov word [edi + 0x7c], ax
mov word [edi + 0x78], dx
call fcn.004e3930
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
movzx esi, ax
lea ebp, [ecx + ebx*2]
mov eax, esi
mov word [ebp], si
mov dword [esp + 0x30], eax
cmp eax, ebx
je 0x4c43f9
mov edx, dword [edi + 0x10]
lea ecx, [edx + eax*8]
cmp eax, dword [esp + 0x20]
jae 0x4c4387
cmp eax, 0x8000
jb 0x4c42ec
mov dl, byte [ecx + 4]
test dl, 0x40
jne 0x4c42ec
mov al, dl
and al, 0x1f
cmp al, 2
jbe 0x4c42ec
mov eax, dword [esp + 0x10]
or dl, 0x40
mov byte [ecx + 4], dl
cmp eax, 0x40
jae 0x4c447c
mov word [esp + eax*2 + 0x38], si
inc eax
mov dword [esp + 0x10], eax
mov bl, byte [ecx + 4]
mov al, byte [esp + 0x17]
mov cl, bl
xor cl, al
test cl, 0x1f
je 0x4c43f5
movzx esi, al
and esi, 0x1f
movzx edx, bl
add esi, 0xfffffff1
and edx, 0x1f
cmp esi, 4
ja 0x4c4320
lea ecx, [edx - 0xf]
cmp ecx, 4
jbe 0x4c43f5
and al, 0x1f
cmp al, 0xe
jne 0x4c433a
lea eax, [edx - 0xf]
cmp eax, 4
ja 0x4c433a
mov eax, 0x1d3
mov ecx, 0x5b0e
jmp 0x4c4359
and bl, 0x1f
cmp bl, 0xe
jne 0x4c4474
cmp esi, 4
ja 0x4c4474
mov eax, 0x326e
mov ecx, 0x5b93
mov word [edi + 0x7c], cx
mov ecx, dword [esp + 0x30]
mov word [edi + 0x78], cx
mov ecx, edi
mov word [edi + 0x7a], ax
call fcn.004e3930
mov ebx, dword [esp + 0x18]
movzx ecx, ax
mov word [ebp], cx
mov eax, dword [edi + 0x10]
mov ebp, dword [esp + 0x20]
lea edx, [eax + ecx*8]
jmp 0x4c43c4
cmp eax, 0xffff
je 0x4c43f9
mov ebp, dword [esp + 0x20]
cmp eax, ebp
jbe 0x4c43f9
mov al, byte [ecx + 5]
cmp al, 0x5b
jne 0x4c43a6
movzx ecx, word [ecx]
cmp ecx, ebp
jae 0x4c43f9
jmp 0x4c43bc
cmp al, 0x49
jne 0x4c43f9
movzx ecx, word [ecx + 2]
cmp ecx, ebp
jae 0x4c43f9
mov eax, 0x7fff
cmp cx, ax
je 0x4c43f9
mov eax, ecx
movzx ecx, ax
lea edx, [edx + ecx*8]
cmp ecx, ebp
jae 0x4c43f9
cmp ecx, 0x8000
jb 0x4c43f9
mov al, byte [edx + 4]
mov ebp, dword [esp + 0x10]
test al, 0x40
jne 0x4c43fd
or al, 0x40
mov byte [edx + 4], al
cmp ebp, 0x40
jae 0x4c447c
mov word [esp + ebp*2 + 0x38], cx
inc ebp
mov dword [esp + 0x10], ebp
jmp 0x4c43fd
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x18], ebx
cmp ebx, dword [esp + 0x20]
jae 0x4c4415
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
jmp 0x4c41f0
mov ecx, dword [edi + 0x1c]
cmp byte [edi + 0x76], 0
jl 0x4c4434
mov eax, 0xffff
add word [edi + 6], ax
movzx eax, word [edi + 6]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*4]
mov dword [edi + 0x18], eax
movzx ecx, byte [ecx + 0xa]
mov eax, dword [edi + 0x20]
push dword [esp + 0x2c]
push ebp
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x28]
push edi
call fcn.004c3c20
mov ecx, dword [esp + 0xcc]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0050a47b
add esp, 0xac
ret
push 0x1a
push edi
call fcn.004a52b0
push 0x19
push edi
call fcn.004a52b0
int3