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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
push edi
push 8
lea eax, [esp + 0x48]
push eax
call dword [0x10075f84]
mov edx, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push ebx
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [0x10075f50]
mov esi, 0xff
push 0x200
xor eax, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
call fcn.004b15e0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov word [eax], bx
add esp, 4
push 0x200
xor eax, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], esi
call fcn.004b15e0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov word [eax], bx
add esp, 4
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00489430
add esp, 8
lea edx, [esp + 0x1c]
push edx
mov edx, dword [eax]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.004c6930
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4c4dd0
call fcn.004b16a0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x44]
push eax
call dword [0x10075f7c]
mov ecx, dword [esp + 0x2c]
push ecx
lea edi, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00498aa0
cmp dword [esp + 0x14], ebx
je 0x4c4e0d
cmp dword [esp + 0x20], ebx
je 0x4c4e21
push 0x10060788
mov esi, edi
call fcn.00497c00
cmp dword [esp + 0x20], ebx
je 0x4c4e21
lea edx, [esp + 0x1c]
push edx
lea esi, [esp + 0x14]
call fcn.00497ba0
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x10]
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x84], ecx
mov dword [eax], 1
call dword [0x10075f80]
cmp word [edi], bx
mov esi, edi
mov dword [esp + 0x28], ebx
je 0x4c4f45
cmp word [esi], 0x5c
jne 0x4c4f24
mov eax, esi
sub eax, dword [esp + 0x3c]
lea ecx, [esp + 0x38]
sar eax, 1
add eax, eax
cmp dword [esp + 0x28], ebx
mov word [esp + 0x38], ax
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], 0x40
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
jne 0x4c4ed3
mov edx, dword [0x10075e30]
mov eax, dword [edx + 0x2a4]
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x50]
push edx
call eax
test eax, eax
jne 0x4c4ed3
test dword [esp + 0xa8], 0x10
jne 0x4c4ed3
mov ecx, dword [ebp + 8]
push 1
push 1
lea eax, [esp + 0x54]
push eax
push ecx
call fcn.004beb00
push ebx
push ebx
push 1
push 2
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x6c]
push eax
push ebx
lea ecx, [esp + 0x68]
push ecx
call fcn.0048dd00
test eax, eax
jne 0x4c4f24
cmp dword [esp + 0x28], ebx
mov eax, dword [esp + 0x40]
jne 0x4c4f1e
cmp eax, 0xffffffff
je 0x4c4f1e
cmp eax, 0xfffffff5
jae 0x4c4f1e
mov edx, 0x6000000
cmp edx, eax
sbb ecx, ecx
neg ecx
je 0x4c4f1e
mov dword [esp + 0x28], 1
push eax
call fcn.0048efc0
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4c4f39
add eax, eax
lea edx, [eax + edi]
cmp esi, edx
jae 0x4c4f39
add esi, eax
jmp 0x4c4f3c
add esi, 2
cmp word [esi], bx
jne 0x4c4e52
push edi
lea eax, [esp + 0x3c]
push eax
call dword [0x10075f80]
mov eax, dword [ebp + 8]
push 1
push 1
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x44]
push eax
mov dword [esp + 0x74], 0x18
mov dword [esp + 0x78], ebx
mov dword [esp + 0x80], 0x40
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
call fcn.004beb00
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
call dword [0x1005f074]
mov edx, dword [esp + 0x7c]
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, edi
call fcn.004b16a0
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4c4fdd
call fcn.004b16a0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4c4fea
call fcn.004b16a0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20