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

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x40]
push edi
xor edi, edi
cmp ebx, edi
jne 0x4c6e1a
pop edi
mov eax, 1
pop ebx
add esp, 0x28
ret
mov eax, dword [ebx]
push ebp
mov ebp, dword [esp + 0x44]
push esi
mov esi, dword [ebp]
mov ecx, ebx
call dword [eax + 0x68]
mov ecx, dword [esi + 0x10]
and eax, dword [ecx + 0x480]
and edx, dword [ecx + 0x484]
or eax, edx
je 0x4c71fa
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x30]
cmp eax, 0xc
mov ecx, ebx
jne 0x4c6eb4
mov eax, dword [ebx]
call dword [eax + 0x158]
cmp eax, 0xd
je case.0x4c6ef5.3
mov esi, dword [ebx + 0x78]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4c6ea7
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push edi
push ebx
push ebp
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
push ecx
call fcn.004c6e00
add esp, 0x20
test eax, eax
je case.0x4c6ef5.3
mov esi, dword [esi]
mov eax, dword [esi + 4]
test eax, eax
jne 0x4c6e76
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 0x28
ret
mov edx, dword [ebx]
call dword [edx + 0x30]
mov esi, 1
cmp eax, esi
jne case.0x4c6ef5.3
mov eax, dword [ebx]
mov ecx, ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
call dword [eax + 0x158]
dec eax
cmp eax, 0x10
ja case.0x4c6ef5.3
movzx ecx, byte [eax + 0x4c7228]
jmp dword [ecx*4 + 0x4c7208]
mov dword [esp + 0x20], esi
mov dword [esp + 0x4c], esi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.00409fca
add esp, 0xc
test eax, eax
je case.0x4c6ef5.3
cmp dword [esp + 0x1c], edi
je 0x4c6f2f
cmp dword [esp + 0x4c], edi
jne 0x4c6f2f
sub esi, dword [esp + 0x14]
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov esi, dword [eax + 0x18]
cmp esi, ebp
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x10], edx
ja case.0x4c6ef5.3
mov edi, dword [esp + 0x2c]
lea esp, [esp]
mov ecx, dword [esi]
mov eax, dword [edi + 0x74]
mov edx, dword [ecx]
push eax
call dword [edx + 0x34]
test eax, eax
jne 0x4c6f9d
movzx ecx, word [esi + 0xe]
mov edx, dword [esp + 0x10]
add edx, ecx
add esi, 0x18
cmp esi, ebp
mov dword [esp + 0x10], edx
jbe 0x4c6f50
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x28
ret
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], esi
jmp case.0x4c6ef5.6
mov dword [esp + 0x24], esi
jmp case.0x4c6ef5.6
mov dword [esp + 0x18], esi
jmp case.0x4c6ef5.6
xor eax, eax
cmp esi, ebp
sete al
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4c6fb4
mov eax, dword [esp + 0x4c]
test eax, eax
je case.0x4c6ef5.3
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
test eax, eax
mov edx, dword [edi]
mov dword [esp + 0x28], edx
jne 0x4c6fd8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4c6fd8
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x14]
jne 0x4c704d
mov edx, dword [esp + 0x40]
movzx eax, word [esi + 0xe]
mov ebp, dword [edx + 0x10]
mov ecx, dword [edx + 8]
sub eax, ebp
mov ebp, dword [esp + 0x10]
add eax, ebp
cmp ecx, eax
jae 0x4c6ff5
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x58]
cmp dword [ecx], 0
jne 0x4c700d
lea ebp, [esi + 0x18]
cmp ebp, dword [esp + 0x48]
mov ebp, dword [esp + 0x10]
jne 0x4c700d
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c7022
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4c7022
mov edx, dword [edx + 8]
mov dword [ecx], edx
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0x18]
mov ecx, esi
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [edi]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, 1
shl edx, cl
or eax, edx
mov dword [edi], eax
jmp 0x4c7051
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
cmp eax, dword [edi]
jne 0x4c7100
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c708a
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4c707f
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x4c707f
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x14]
jne 0x4c70cf
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x38]
or eax, edx
je 0x4c7100
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4c70cf
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4c70b6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x38]
or eax, edx
je case.0x4c6ef5.3
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 0x28
ret
mov ecx, dword [esi]
push 0
call fcn.0040400c
test eax, eax
jne 0x4c71fa
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c71fa
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x54]
mov edx, dword [eax]
xor ecx, ecx
test ebx, ebx
sete cl
pop esi
pop ebp
pop edi
pop ebx
inc ecx
not ecx
and edx, ecx
mov dword [eax], edx
mov eax, 1
add esp, 0x28
ret
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4c711c
mov esi, dword [esi]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4c7116
mov dl, byte [esi + 0x56]
or byte [eax], dl
mov byte [ebp], 1
jmp 0x4c7173
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c7131
mov eax, dword [esp + 0x3c]
test eax, eax
mov eax, 2
jne 0x4c7136
mov eax, 1
mov eax, dword [esp + eax*4 + 0x2c]
mov ecx, dword [esi]
push 0
push eax
push ecx
call fcn.00407e3c
mov al, byte [esi + 0x17]
add esp, 0xc
test al, al
je 0x4c7161
mov ecx, dword [esi]
push 0
call fcn.0040400c
test eax, eax
setne dl
mov byte [ebp], dl
inc ebp
movzx edx, word [esi + 0xc]
mov ecx, dword [esi]
mov eax, dword [ecx]
push 0
push edx
push ebp
call dword [eax + 0xb4]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c71fa
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4c71f3
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x4c71f3
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x54]
mov esi, dword [eax]
mov edx, dword [esp + 0x24]
xor ecx, ecx
test ebp, ebp
setne cl
inc ecx
not ecx
and esi, ecx
test edx, edx
mov dword [eax], esi
mov ecx, esi
je 0x4c71ce
xor edx, edx
mov edi, ebp
test edi, edi
setne dl
pop esi
pop ebp
pop edi
pop ebx
lea edx, [edx*4 + 4]
or edx, ecx
mov dword [eax], edx
mov eax, 1
add esp, 0x28
ret
mov ebx, dword [esp + 0x3c]
xor edx, edx
test ebx, ebx
setne dl
pop esi
pop ebp
pop edi
pop ebx
lea edx, [edx*4 + 4]
not edx
and edx, ecx
mov dword [eax], edx
mov eax, 1
add esp, 0x28
ret
mov eax, dword [esp + 0x54]
and dword [eax], 0xfffffffc
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 0x28
ret