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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60a4dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x24], esi
mov ebx, dword [ebp + 0xc]
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, esp
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov dword [esp + 0x34], esp
lea eax, [esp + 0x58]
push eax
mov eax, dword [esi]
push ebx
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call dword [eax + 0x114]
mov ecx, eax
call fcn.0042941f
mov eax, dword [esp + 0x50]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x60]
mov dword [esp + 0x6c], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xc8]
test al, al
je 0x4c4aec
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x4c464e
mov eax, dword [0x6a677c]
jmp 0x4c4664
cmp eax, dword [0x6a677c]
jne 0x4c4664
push 0
push 1
push dword [ebp + 8]
mov ecx, ebx
call fcn.00420f6d
and dword [esp + 0x14], 0
push eax
lea ecx, [esp + 0x18]
call fcn.0046458f
and dword [esp + 0x7c], 0
push dword [esp + 0x14]
mov ecx, dword [ebp + 8]
mov ebx, dword [edi]
call fcn.00456a2b
push eax
mov ecx, edi
call dword [ebx + 0xc]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x3c]
mov ebx, 0xff000000
cmp eax, ebx
jne 0x4c469e
mov eax, ebx
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x3c]
mov eax, dword [edi]
push 0
push ebx
mov ecx, edi
call dword [eax + 0x18]
mov eax, dword [edi]
push 0
push 0
push ebx
mov ecx, edi
call dword [eax + 0x14]
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xb8]
mov eax, dword [eax]
push dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xb8]
mov eax, dword [eax]
test eax, eax
je 0x4c46e7
mov eax, dword [eax - 4]
jmp 0x4c46e9
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x6a6738
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov byte [esp + 0x7c], 1
call fcn.004c1545
mov ecx, dword [esp + 0x60]
sub ecx, dword [esi + 0x18]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x6c]
sub eax, dword [edi + 0x4c]
mov dword [esp + 0x30], ecx
sub eax, dword [esp + 0x64]
inc eax
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esi + 0x10]
sar ebx, 1
add ebx, dword [edi + 0x48]
add ebx, dword [esp + 0x64]
mov dword [esp + 0x34], ebx
cmp eax, dword [esi + 0x14]
je 0x4c4886
mov esi, dword [ebp + 0xc]
call fcn.004c1502
test al, al
jne 0x4c4760
mov ebx, dword [ebp + 8]
mov eax, esi
call fcn.004c1545
mov ebx, dword [esp + 0x34]
test al, al
je 0x4c487e
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4c476e
mov eax, dword [0x6a677c]
jmp 0x4c4784
cmp eax, dword [0x6a677c]
jne 0x4c4784
push 0
push 1
push dword [ebp + 8]
mov ecx, esi
call fcn.00420f6d
mov ecx, dword [eax + 0x48]
mov eax, 0xff000000
cmp ecx, eax
jne 0x4c4792
mov ecx, eax
lea eax, [edi + 0x58]
mov edx, dword [eax]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edx
mov dword [eax], ecx
mov byte [esp + 0x7c], 2
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4c47b4
mov eax, dword [0x6a677c]
jmp 0x4c47ca
cmp eax, dword [0x6a677c]
jne 0x4c47ca
push 0
push 1
push dword [ebp + 8]
mov ecx, esi
call fcn.00420f6d
mov ecx, dword [eax + 0x4c]
mov eax, 0xff000000
cmp ecx, eax
jne 0x4c47d8
mov ecx, eax
lea eax, [edi + 0x5c]
mov edx, dword [eax]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov dword [eax], ecx
mov esi, dword [esp + 0x24]
mov byte [esp + 0x7c], 3
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x44]
mov edx, dword [esi + 0x14]
mov eax, ecx
sub eax, 0xff
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 0x10]
cmp ecx, edx
mov dword [esp + 0x28], ecx
jg 0x4c481c
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
jl 0x4c4820
mov dword [esp + 0x2c], edx
cmp eax, 1
sete al
movzx eax, al
push eax
push ecx
push dword [esp + 0x30]
push dword [ebp + 0xc]
call fcn.004c4543
pop ecx
push eax
push dword [esp + 0x34]
push dword [ebp + 0xc]
call fcn.004c4543
push eax
push dword [esp + 0x2c]
push dword [esp + 0x28]
push ecx
push ecx
mov ecx, dword [esp + 0x4c]
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x48], esp
call dword [eax + 0x60]
mov eax, dword [esp + 0x38]
mov dword [edi + 0x5c], eax
mov byte [esp + 0x7c], 1
mov eax, dword [esp + 0x40]
mov dword [edi + 0x58], eax
jmp 0x4c4a3b
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
cmp byte [esp + 0x13], 0
jne 0x4c497e
cmp byte [esi + 0x3c], 0
je 0x4c497e
push 0
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, esp
mov dword [esp + 0x34], esp
mov dword [eax], 0x1c
lea eax, [esp + 0x34]
push eax
add ecx, 0x14
call fcn.0040bfad
push dword [eax]
lea ecx, [esp + 0x20]
call fcn.00404a39
lea ecx, [esp + 0x2c]
call fcn.0040479b
mov eax, dword [esp + 0x1c]
xor edx, edx
cmp dword [eax + 4], edx
jne 0x4c491d
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x10], 0x45
jne 0x4c491d
cmp dword [ecx + 0x20], edx
je 0x4c491d
push edx
push ecx
mov eax, esp
mov dword [esp + 0x34], esp
mov dword [eax], 0x1c
mov ecx, dword [ecx + 0x20]
lea eax, [esp + 0x34]
push eax
add ecx, 0x14
call fcn.0040bfad
push dword [eax]
lea ecx, [esp + 0x20]
call fcn.00404a39
lea ecx, [esp + 0x2c]
call fcn.0040479b
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4c492f
add eax, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x44]
push 4
pop ecx
cmp eax, 0xff
je 0x4c4948
cmp eax, 1
jne 0x4c4948
push 6
pop ecx
push dword [esp + 0x20]
push dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x5c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 0xc], ecx
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x48], esp
call dword [eax + 0x50]
jmp 0x4c49bc
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x44]
mov eax, edx
sub eax, 0xff
neg eax
sbb eax, eax
and eax, edx
cmp eax, 1
sete al
movzx eax, al
push eax
push 0xffffffffffffffff
push 0
push dword [esp + 0x2c]
push dword [esp + 0x28]
push ecx
push ecx
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x48], esp
call dword [eax + 0x60]
cmp dword [esi + 0x38], 0
jle 0x4c4a3b
push dword [esi + 0x34]
mov eax, dword [edi]
push dword [esp + 0x1c]
lea ecx, [esp + 0x48]
push ecx
mov ecx, edi
call dword [eax + 0x24]
push dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax]
lea ecx, [edx + ecx*2]
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x34], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x24]
mov eax, dword [eax]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
add eax, ecx
add eax, edx
add ecx, edx
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
mov dword [esp + 0x40], ecx
mov ecx, edi
call dword [eax + 0x40]
mov ecx, dword [esp + 0x40]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
lea ecx, [ebx + 1]
mov dword [eax + 0xc], ecx
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x3c], esp
call dword [eax + 0x78]
cmp dword [esi + 0x1c], 2
je 0x4c4a4a
cmp dword [esi + 0x20], 0x80000000
je 0x4c4ac9
sub ebx, dword [edi + 0x48]
mov eax, dword [edi + 0x4c]
push edi
push dword [ebp + 0xc]
inc ebx
push dword [ebp + 8]
lea eax, [eax + ebx - 1]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x50], ebx
push eax
mov ebx, esi
call fcn.004c4b02
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x118]
test al, al
mov eax, dword [esp + 0x50]
je 0x4c4a9a
mov esi, dword [esi + 0x18]
mov edx, eax
sub edx, esi
add edx, dword [esp + 0x34]
sub eax, esi
mov esi, dword [esp + 0x4c]
add eax, dword [esp + 0x30]
dec esi
jmp 0x4c4aa7
sub eax, dword [esi + 0x18]
mov esi, dword [esp + 0x44]
add eax, dword [esp + 0x30]
mov edx, eax
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x5c]
mov dword [ecx + 4], esi
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x3c], esp
call dword [eax + 0x80]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
lea ecx, [esp + 0x1c]
call fcn.0040479b
or dword [esp + 0x7c], 0xffffffff
push 0
lea ecx, [esp + 0x18]
call fcn.0046458f
mov ecx, dword [esp + 0x74]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10