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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, ecx
mov dword [esp + 0x10], edx
push esi
push edi
mov dword [esp + 0x3c], ebx
mov esi, dword [ebx]
mov al, byte [ebx + 0x97]
mov byte [esp + 0xe], al
mov dword [esp + 0x10], esi
mov eax, dword [esi + 0x20]
and eax, 0x4000
or eax, 0
je 0x4ca0e0
cmp byte [edx + 0x2b], 0
jne 0x4ca0e0
mov ecx, dword [edx + 0x3c]
mov edi, 0xffff8000
mov dword [esp + 0x1c], edi
test ecx, ecx
je 0x4c9b5d
mov eax, dword [esi + 0x10]
xor edi, edi
add eax, 0xc
mov dword [esp + 0x1c], edi
cmp dword [eax], ecx
je 0x4c9b5d
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x4c9b51
mov dword [esp + 0x1c], edi
mov eax, dword [esi + 0x10]
mov ecx, edi
mov edi, dword [edx + 0x30]
shl ecx, 4
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], edi
mov eax, dword [ecx + eax]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
test edi, edi
je 0x4c9f0c
jmp 0x4c9b87
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x4c9bff
mov ecx, dword [edx]
mov eax, dword [edi + 8]
test ecx, ecx
jne 0x4c9bb2
neg eax
sbb eax, eax
jmp 0x4c9bbd
test eax, eax
je 0x4c9bc1
mov edx, eax
call fcn.0046d310
test eax, eax
je 0x4c9bff
xor esi, esi
cmp dword [edi + 0x14], esi
jle 0x4c9ef5
lea ecx, [edi + 0x24]
nop
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
cmp dword [eax + edx*4], 0
jge 0x4c9bfb
mov eax, dword [esp + 0x18]
movsx eax, word [eax + 0x20]
cmp edx, eax
jne 0x4c9bed
cmp dword [ebp + 0x14], 0
jne 0x4c9bfb
inc esi
add ecx, 8
cmp esi, dword [edi + 0x14]
jl 0x4c9bd0
jmp 0x4c9ef5
mov esi, dword [esp + 0x10]
cmp byte [ebx + 0x97], 0
mov eax, dword [edi + 8]
push dword [esp + 0x30]
je 0x4c9c1d
mov edx, eax
mov ecx, esi
call fcn.004b7c90
add esp, 4
jmp 0x4c9c2a
push eax
xor edx, edx
mov ecx, ebx
call fcn.004b8050
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x4c9db8
lea ecx, [esp + 0x2c]
mov edx, eax
push ecx
lea ecx, [esp + 0x28]
push ecx
push edi
mov ecx, ebx
call fcn.004c80c0
add esp, 0xc
test eax, eax
jne 0x4c9db4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4c9c65
mov ecx, eax
mov dword [esp + 0x20], eax
jmp 0x4c9c74
mov eax, dword [edi + 0x24]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], ecx
xor esi, esi
cmp dword [edi + 0x14], esi
jle 0x4c9ceb
nop dword [eax + eax]
mov eax, dword [esp + 0x18]
movsx eax, word [eax + 0x20]
cmp dword [ecx + esi*4], eax
jne 0x4c9c94
mov dword [ecx + esi*4], 0xffffffff
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x168], 0
je 0x4c9ce5
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
test eax, eax
je 0x4c9cb6
mov eax, dword [eax + 4]
movzx eax, word [eax + esi*2]
jmp 0x4c9cba
movzx eax, word [edx + 0x20]
push dword [esp + 0x1c]
movsx ecx, ax
mov eax, dword [edx + 4]
add ecx, ecx
mov edx, dword [edx]
push dword [eax + ecx*8]
mov ecx, ebx
call fcn.004b6f90
xor ecx, ecx
add esp, 8
cmp eax, 2
sete cl
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
inc esi
cmp esi, dword [edi + 0x14]
jl 0x4c9c80
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
cmp ecx, 1
je 0x4c9d22
mov eax, dword [ebx]
mov edx, dword [esp + 0x38]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx + 4]
cmp byte [eax + 9], 0
je 0x4c9d22
push dword [esi]
mov edx, ecx
mov ecx, ebx
push 0
push dword [esi + 0x14]
call fcn.004b70f0
mov ecx, dword [esp + 0x28]
add esp, 0xc
inc dword [ebx + 0x28]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4c9d49
push dword [esp + 0x28]
mov edx, ecx
mov ecx, ebx
push 0xffffffffffffffff
push eax
push dword [esp + 0x2c]
push edi
push dword [esp + 0x38]
push esi
call fcn.004c8370
add esp, 0x1c
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4c9d98
mov eax, dword [ebx + 0x74]
mov ecx, ebx
test eax, eax
cmovne ecx, eax
mov eax, dword [ecx + 0x7c]
test eax, eax
je 0x4c9d79
mov eax, dword [eax]
cmp eax, dword [edi + 0x1c]
jne 0x4c9d6e
cmp byte [edi + 0x19], 8
je 0x4c9d98
cmp eax, dword [edi + 0x20]
jne 0x4c9d79
cmp byte [edi + 0x1a], 8
je 0x4c9d98
push dword [esp + 0x28]
mov ecx, ebx
push 1
push edx
push dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
push edi
push dword [esp + 0x38]
push esi
call fcn.004c8370
add esp, 0x1c
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x10]
test edx, edx
je 0x4c9ef9
mov ecx, esi
call fcn.00469b90
jmp 0x4c9ef9
mov eax, dword [esp + 0x14]
cmp byte [esp + 0xe], 0
je 0x4ca0e0
cmp byte [esi + 0x57], 0
jne 0x4ca0e0
test eax, eax
jne 0x4c9ef9
mov esi, dword [ebx + 8]
test esi, esi
jne 0x4c9df6
cmp dword [ebx + 0x74], esi
jne 0x4c9ded
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x4c9ded
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.0048e1c0
mov esi, eax
mov eax, dword [esi + 0x74]
mov edx, dword [edi + 0x14]
inc eax
add eax, edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x2c], eax
lea eax, [esi + 0x78]
mov dword [esp + 0x24], eax
test edx, edx
jle 0x4c9ea5
mov ebx, dword [esp + 0x14]
lea eax, [edi + 0x24]
mov dword [esp + 0x28], eax
mov dx, word [eax]
mov ecx, dword [edi]
call fcn.004b8e20
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x74]
inc edx
cwde
add edx, eax
mov eax, dword [esp + 0x24]
cmp dword [eax], ecx
jg 0x4c9e59
push 0
push dword [esp + 0x30]
mov ecx, esi
push edx
mov edx, 0x32
call fcn.0048e410
add esp, 0xc
jmp 0x4c9e8c
mov edi, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x28]
inc ebx
add eax, 8
mov dword [esp + 0x28], eax
cmp ebx, dword [edi + 0x14]
jl 0x4c9e25
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x74]
movzx edx, byte [edi + 0x18]
cmp dword [eax], ecx
jg 0x4c9ec6
push 0
push 0xffffffffffffffff
push edx
mov edx, 0x9d
mov ecx, esi
call fcn.0048e410
add esp, 0xc
jmp 0x4c9ef5
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x9d
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0xffffffff
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [esp + 0x10]
mov edi, dword [edi + 4]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], edi
test edi, edi
jne 0x4c9b84
mov ecx, dword [edx + 0x3c]
mov edx, dword [edx]
add ecx, 0x38
push 0
call fcn.0046e9b0
add esp, 4
mov esi, dword [eax + 8]
test esi, esi
je 0x4ca0e0
nop dword [eax]
mov eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
test eax, eax
je 0x4c9f63
push dword [ebp + 0x14]
mov edx, esi
mov ecx, edi
push eax
call fcn.004c9a00
add esp, 8
test eax, eax
je 0x4ca0d5
cmp byte [esi + 0x18], 0
jne 0x4c9f88
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x20]
and eax, 0x80000
or eax, 0
jne 0x4c9f88
cmp dword [ebx + 0x74], eax
jne 0x4c9f88
cmp byte [ebx + 0x14], al
je 0x4ca0d5
lea eax, [esp + 0x30]
mov edx, edi
push eax
lea eax, [esp + 0x30]
mov ecx, ebx
push eax
push esi
call fcn.004c80c0
add esp, 0xc
test eax, eax
je 0x4c9fc1
cmp byte [esp + 0xe], 0
je 0x4ca0e0
mov edi, dword [esp + 0x10]
cmp byte [edi + 0x57], 0
jne 0x4ca0e0
jmp 0x4ca0d5
mov ecx, dword [ebx]
push 0
push 0x50
call fcn.00469f80
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], eax
test edi, edi
je 0x4ca0c4
push 0x48
lea ecx, [edi + 8]
mov dword [edi + 4], 1
push 0
push ecx
mov dword [edi], 1
call fcn.00546340
mov dword [edi + 0x34], 0xffffffff
add esp, 0xc
mov eax, dword [edi]
lea eax, [eax + eax*8]
mov dword [edi + eax*8 - 0x38], 0
mov dword [edi + eax*8 - 0x3c], 0
mov ecx, dword [esi]
mov dword [edi + 0x18], ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [edi + 0x10], eax
inc dword [ecx + 0x18]
mov eax, dword [ebx + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x34], eax
inc dword [ebx + 0x28]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4ca05a
push 0xffffffffffffffff
push eax
push dword [esp + 0x30]
mov edx, edi
push esi
push ecx
push dword [esp + 0x2c]
mov ecx, ebx
call fcn.004c8ea0
mov ecx, dword [esp + 0x44]
add esp, 0x18
mov edx, dword [ebp + 8]
test edx, edx
je 0x4ca0aa
push 1
push edx
push dword [esp + 0x30]
xor eax, eax
mov edx, edi
cmp dword [ebp + 0x10], eax
push esi
setne al
push ecx
push dword [esp + 0x2c]
mov ecx, ebx
mov al, byte [eax + esi + 0x19]
mov byte [esp + 0x27], al
call fcn.004c8ea0
add esp, 0x18
cmp byte [esi + 0x18], 0
jne 0x4ca0aa
mov al, byte [esp + 0xf]
cmp al, 0xa
je 0x4ca0aa
cmp al, 8
je 0x4ca0aa
mov eax, dword [ebx + 0x74]
mov ecx, ebx
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov dword [edi + 0x10], 0
mov edx, edi
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.004bffb0
mov eax, dword [esp + 0x28]
jmp 0x4ca0c8
mov edi, dword [esp + 0x10]
test eax, eax
je 0x4ca0d5
mov edx, eax
mov ecx, edi
call fcn.00469b90
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4c9f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret