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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50c3c8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x806d00]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [esp + 0x18], 0
call dword [0x6ab704]
mov ecx, ebx
mov edi, eax
call dword [0x6ab70c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
add esi, 0x10
push eax
mov ecx, esi
mov dword [esp + 0x20], 0
call fcn.0047f2d0
mov ecx, eax
mov dword [esp + 0x98], 0
call dword [0x6abc00]
mov ecx, dword [esp + 0x24]
test al, al
sete byte [esp + 0x17]
mov dword [esp + 0x98], 0xffffffff
call dword [0x6abbf0]
test al, al
jne 0x4c0741
mov ecx, dword [esp + 0x24]
push ecx
call dword [0x6abbf4]
add esp, 4
cmp byte [esp + 0x17], 0
je 0x4c0ac4
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.0047f2d0
push 0
mov ecx, eax
mov dword [esp + 0x9c], 1
call dword [0x6abbf8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov dword [esp + 0x98], 0xffffffff
call dword [0x6abbf0]
test al, al
jne 0x4c079a
mov ecx, dword [esp + 0x24]
push ecx
call dword [0x6abbf4]
add esp, 4
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x4c]
push eax
call edx
mov ecx, eax
call dword [0x6abb1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
call dword [0x6acfc8]
mov ecx, dword [esp + 0x24]
lea edx, [ecx + eax*2]
mov ecx, ebx
mov dword [esp + 0x30], edx
call dword [0x6ababc]
cdq
idiv dword [esp + 0x30]
mov ecx, esi
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x34], ebx
call fcn.0047f2d0
mov ecx, eax
mov dword [esp + 0x98], 2
call dword [0x6abc24]
mov dword [esp + 0x34], eax
cmp ebx, eax
lea eax, [esp + 0x30]
jl 0x4c080d
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [eax]
mov dword [esp + 0x98], 0xffffffff
call dword [0x6abbf0]
test al, al
jne 0x4c0836
mov ecx, dword [esp + 0x2c]
push ecx
call dword [0x6abbf4]
add esp, 4
test ebx, ebx
jne 0x4c083f
mov ebx, 1
mov ecx, dword [ebp + 8]
call dword [0x6ababc]
imul ebx, dword [esp + 0x24]
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
mov dword [esp + 0x44], eax
add edi, eax
call fcn.0047f2d0
push eax
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0xa0], 3
call fcn.0043a720
add esp, 8
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x98], 5
call dword [0x6abbf0]
test al, al
jne 0x4c08a3
mov ecx, dword [esp + 0x2c]
push ecx
call dword [0x6abbf4]
add esp, 4
mov eax, dword [esp + 0x70]
mov edx, eax
inc eax
mov dword [esp + 0x70], eax
test edx, edx
jne 0x4c08c0
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0x78]
je 0x4c08c0
mov bl, 1
jmp 0x4c08c2
xor bl, bl
test byte [esp + 0x18], 2
je 0x4c08ea
mov ecx, dword [esp + 0x34]
and dword [esp + 0x18], 0xfffffffd
call dword [0x6abbf0]
test al, al
jne 0x4c08ea
mov ecx, dword [esp + 0x34]
push ecx
call dword [0x6abbf4]
add esp, 4
test bl, bl
je 0x4c0a9a
test byte [esp + 0x18], 4
mov edx, dword [esp + 0x74]
mov eax, dword [edx]
mov dword [esp + 0x30], eax
je 0x4c0924
mov ecx, dword [esp + 0x38]
and dword [esp + 0x18], 0xfffffffb
call dword [0x6abbf0]
test al, al
jne 0x4c0924
mov ecx, dword [esp + 0x38]
push ecx
call dword [0x6abbf4]
add esp, 4
test byte [esp + 0x18], 0x10
mov esi, dword [esp + 0x70]
je 0x4c0950
mov ecx, dword [esp + 0x3c]
and dword [esp + 0x18], 0xffffffef
call dword [0x6abbf0]
test al, al
jne 0x4c0950
mov edx, dword [esp + 0x3c]
push edx
call dword [0x6abbf4]
add esp, 4
test esi, esi
je 0x4c0a69
mov ecx, dword [esp + 0x20]
mov ebx, dword [0x6acfc8]
call ebx
mov ecx, dword [esp + 0x20]
mov esi, eax
add esi, dword [esp + 0x24]
add esi, edi
call ebx
mov ecx, dword [ebp + 8]
mov ebx, esi
sub ebx, eax
call dword [0x6ab48c]
cmp ebx, eax
jle 0x4c09c3
cmp dword [esp + 0x1c], 0
jle 0x4c09c3
mov ecx, dword [ebp + 8]
call dword [0x6ab704]
mov ebx, dword [esp + 0x20]
mov esi, dword [0x6acfc8]
mov edi, eax
add edi, dword [esp + 0x40]
mov ecx, ebx
call esi
add eax, dword [esp + 0x1c]
mov ecx, ebx
add dword [esp + 0x28], eax
call esi
mov esi, eax
add esi, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
add esi, edi
cmp byte [ebp + 0xc], 0
mov ebx, dword [esp + 0x30]
jne 0x4c0a0a
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebx
mov dword [esp + 0x48], eax
call edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push edi
lea ecx, [esp + 0x68]
call dword [0x6abb08]
push eax
lea ecx, [esp + 0x84]
call dword [0x6ab47c]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x64]
push eax
mov ecx, ebx
mov edi, esi
call edx
mov ecx, eax
call dword [0x6abb20]
cmp dword [esp + 0x1c], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
jl 0x4c0a34
lea eax, [esp + 0x1c]
mov eax, dword [eax]
dec dword [esp + 0x70]
test byte [esp + 0x18], 8
mov dword [esp + 0x1c], eax
je 0x4c0924
mov ecx, dword [esp + 0x48]
and dword [esp + 0x18], 0xfffffff7
call dword [0x6abbf0]
test al, al
jne 0x4c0924
mov ecx, dword [esp + 0x48]
jmp 0x4c091a
add dword [esp + 0x74], 4
test byte [esp + 0x18], 1
je 0x4c08a3
mov ecx, dword [esp + 0x4c]
and dword [esp + 0x18], 0xfffffffe
call dword [0x6abbf0]
test al, al
jne 0x4c08a3
mov edx, dword [esp + 0x4c]
push edx
jmp 0x4c089a
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x98], 0xffffffff
call dword [0x6abbf0]
test al, al
jne 0x4c0ac1
mov eax, dword [esp + 0x6c]
push eax
call dword [0x6abbf4]
add esp, 4
mov ebx, dword [ebp + 8]
mov ecx, ebx
call dword [0x6ab70c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
add ecx, edx
sub ecx, eax
mov eax, ecx
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8