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

Disassembly:
sub esp, 0xac
mov eax, dword [0x60b3c4]
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.004a4530
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.004e5830
movzx esi, word [edi + 6]
mov dword [esp + 0x2c], esi
lea eax, [esi*2 - 2]
cmp eax, dword [edi + 0x120]
jbe 0x4c9941
push eax
push edi
call fcn.004cbac0
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 0x4c9971
push eax
push edi
call fcn.004cbb00
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 0x4c9be8
mov ebx, 0x8001
nop dword [eax]
movzx eax, word [esi + 4]
cmp ebx, eax
jb 0x4c99de
push dword [esp + 0x1c]
push edx
push esi
push edi
call fcn.004c9720
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 0x4c99fa
movzx edx, word [eax + edx*2]
movzx ebx, word [esi + 2]
mov ecx, ebx
cmp ecx, 0x8000
jb 0x4c9a0c
movzx ecx, word [eax + ecx*2]
movzx eax, byte [esi + 5]
test byte [eax + 0x5928f0], 0x60
jne 0x4c9a32
cmp edx, ebp
jne 0x4c9a32
cmp ecx, ebx
jne 0x4c9a32
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov word [eax + ebx*2], bx
jmp 0x4c9bc9
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.004e9100
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 0x4c9bc9
mov edx, dword [edi + 0x10]
lea ecx, [edx + eax*8]
cmp eax, dword [esp + 0x20]
jae 0x4c9b57
cmp eax, 0x8000
jb 0x4c9abc
mov dl, byte [ecx + 4]
test dl, 0x40
jne 0x4c9abc
mov al, dl
and al, 0x1f
cmp al, 2
jbe 0x4c9abc
mov eax, dword [esp + 0x10]
or dl, 0x40
mov byte [ecx + 4], dl
cmp eax, 0x40
jae 0x4c9c4c
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 0x4c9bc5
movzx esi, al
and esi, 0x1f
movzx edx, bl
add esi, 0xfffffff1
and edx, 0x1f
cmp esi, 4
ja 0x4c9af0
lea ecx, [edx - 0xf]
cmp ecx, 4
jbe 0x4c9bc5
and al, 0x1f
cmp al, 0xe
jne 0x4c9b0a
lea eax, [edx - 0xf]
cmp eax, 4
ja 0x4c9b0a
mov eax, 0x1d3
mov ecx, 0x5b0e
jmp 0x4c9b29
and bl, 0x1f
cmp bl, 0xe
jne 0x4c9c44
cmp esi, 4
ja 0x4c9c44
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.004e9100
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 0x4c9b94
cmp eax, 0xffff
je 0x4c9bc9
mov ebp, dword [esp + 0x20]
cmp eax, ebp
jbe 0x4c9bc9
mov al, byte [ecx + 5]
cmp al, 0x5b
jne 0x4c9b76
movzx ecx, word [ecx]
cmp ecx, ebp
jae 0x4c9bc9
jmp 0x4c9b8c
cmp al, 0x49
jne 0x4c9bc9
movzx ecx, word [ecx + 2]
cmp ecx, ebp
jae 0x4c9bc9
mov eax, 0x7fff
cmp cx, ax
je 0x4c9bc9
mov eax, ecx
movzx ecx, ax
lea edx, [edx + ecx*8]
cmp ecx, ebp
jae 0x4c9bc9
cmp ecx, 0x8000
jb 0x4c9bc9
mov al, byte [edx + 4]
mov ebp, dword [esp + 0x10]
test al, 0x40
jne 0x4c9bcd
or al, 0x40
mov byte [edx + 4], al
cmp ebp, 0x40
jae 0x4c9c4c
mov word [esp + ebp*2 + 0x38], cx
inc ebp
mov dword [esp + 0x10], ebp
jmp 0x4c9bcd
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x18], ebx
cmp ebx, dword [esp + 0x20]
jae 0x4c9be5
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
jmp 0x4c99c0
mov ecx, dword [edi + 0x1c]
cmp byte [edi + 0x76], 0
jl 0x4c9c04
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.004c93f0
mov ecx, dword [esp + 0xcc]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0050fd4b
add esp, 0xac
ret
push 0x1a
push edi
call fcn.004aaa80
push 0x19
push edi
call fcn.004aaa80
int3