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

Disassembly:
sub esp, 0xf0
push ebx
push ebp
push esi
push edi
push dword [esp + 0x108]
mov esi, edx
mov edi, ecx
mov edx, dword [esp + 0x108]
lea ecx, [esp + 0x5c]
xor ebx, ebx
mov dword [esp + 0x38], esi
mov ebp, ebx
mov dword [esp + 0x58], edi
mov dword [esp + 0x18], ebp
call fcn.004b84b2
pop ecx
call fcn.004b9447
push eax
lea ecx, [esp + 0x5c]
call fcn.004b82ba
test eax, eax
je 0x4c365a
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.004b82ba
test eax, eax
jg 0x4c3a3a
push esi
lea ecx, [esp + 0x5c]
call fcn.004b82ba
test eax, eax
jg 0x4c3a3a
lea ecx, [esp + 0x58]
call fcn.004c2c73
test al, al
je 0x4c3a3a
mov ecx, dword [esp + 0x10c]
test ecx, ecx
je 0x4c3647
mov eax, dword [ecx]
lea edx, [esp + 0x58]
push edx
call dword [eax]
test al, al
je 0x4c3a3a
lea eax, [esp + 0x58]
mov ecx, edi
push eax
call fcn.004b698c
mov bl, 1
jmp 0x4c3a3a
lea ecx, [esp + 0x1c]
call fcn.004c20ad
mov ecx, eax
mov eax, dword [esp + 0x1c]
add eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x38], eax
add eax, ecx
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x20]
movzx eax, word [eax - 2]
push eax
call fcn.004b686a
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.004b82ba
push dword [esp + 0x28]
mov esi, eax
push dword [esp + 0x30]
call fcn.00472a06
test esi, esi
jg 0x4c3865
mov ecx, edi
call fcn.004b7963
cmp dword [edi + 0x10], 1
je 0x4c370f
mov ecx, edi
call fcn.004b6953
test al, al
jne 0x4c370f
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0x38]
mov ecx, dword [eax]
neg ecx
cmp dword [edi + 0x10], ebx
cmove ecx, dword [eax]
sar edx, 1
mov dword [esp + 0x50], ecx
test edx, edx
jle 0x4c370f
mov ecx, dword [esp + 0x18]
mov esi, edx
sar esi, 1
lea eax, [ecx + esi*2]
mov dword [esp + 0x38], eax
movzx eax, word [eax]
cmp dword [esp + 0x50], eax
jae 0x4c36f9
mov edx, esi
jmp 0x4c3707
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
sub eax, esi
add ecx, 2
add edx, eax
test edx, edx
jg 0x4c36e1
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x104]
cmp esi, dword [esp + 0x1c]
jae 0x4c378f
movzx eax, word [esi]
lea ecx, [esp + 0x3c]
push eax
call fcn.004b686a
push dword [esp + 0x108]
lea eax, [esp + 0x70]
or ebp, 3
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x1c], ebp
call fcn.004b8148
push edi
lea ecx, [esp + 0x70]
call fcn.004b82ba
test eax, eax
jne 0x4c3788
cmp dword [esp + 0x10c], ebx
je 0x4c378f
movzx eax, word [esi]
lea ecx, [esp + 0x20]
push eax
call fcn.004b686a
mov ecx, dword [esp + 0x10c]
lea edx, [esp + 0x20]
or ebp, 4
push edx
mov dword [esp + 0x18], ebp
mov eax, dword [ecx]
call dword [eax]
test al, al
jne 0x4c378f
mov byte [esp + 0x13], 1
jmp 0x4c3793
mov byte [esp + 0x13], bl
mov eax, dword [esp + 0x14]
test al, 4
je 0x4c37b3
push dword [esp + 0x28]
and eax, 0xfffffffb
push dword [esp + 0x30]
mov dword [esp + 0x1c], eax
call fcn.00472a06
mov eax, dword [esp + 0x14]
test al, 2
je 0x4c37cf
push dword [esp + 0x74]
and eax, 0xfffffffd
push dword [esp + 0x7c]
mov dword [esp + 0x1c], eax
call fcn.00472a06
mov eax, dword [esp + 0x14]
test al, 1
je 0x4c37e7
push dword [esp + 0x44]
and eax, 0xfffffffe
push dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
call fcn.00472a06
cmp byte [esp + 0x13], bl
je 0x4c37f9
mov ebp, dword [esp + 0x14]
add esi, 2
jmp 0x4c371a
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
mov edi, dword [esp + 0x54]
cmp esi, eax
jae 0x4c3841
movzx eax, word [esi]
push eax
call fcn.004b686a
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
call fcn.004b698c
push dword [esp + 0x44]
push dword [esp + 0x4c]
call fcn.00472a06
mov ebp, dword [esp + 0x34]
mov ecx, edi
push ebp
call fcn.004b82ba
test eax, eax
setle bl
jmp 0x4c3a3a
movzx eax, word [eax - 2]
inc eax
push eax
call fcn.004b686a
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
call fcn.004b698c
push dword [esp + 0x44]
push dword [esp + 0x4c]
call fcn.00472a06
mov esi, dword [esp + 0x108]
mov ecx, esi
push ebx
call fcn.004b69fa
cmp al, 1
jne 0x4c3941
push 1
lea ecx, [esp + 0x24]
call fcn.004b686a
push 2
lea ecx, [esp + 0x70]
call fcn.004b686a
push 1
lea ecx, [esp + 0x40]
call fcn.004b686a
push dword [esp + 0x10c]
lea eax, [esp + 0x98]
push ecx
push 1
push eax
mov ecx, esi
call fcn.004a6a1f
mov edx, dword [esp + 0x10c]
pop ecx
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x4c]
push eax
push esi
lea ecx, [esp + 0x98]
call fcn.004c3a82
mov edx, dword [esp + 0x4c]
add esp, 0x10
mov ecx, edi
push eax
call fcn.004c35ab
add esp, 0xc
mov bl, al
push dword [esp + 0x88]
push dword [esp + 0x90]
call fcn.00472a06
push dword [esp + 0x9c]
push dword [esp + 0xa4]
call fcn.00472a06
push dword [esp + 0x44]
push dword [esp + 0x4c]
call fcn.00472a06
push dword [esp + 0x74]
push dword [esp + 0x7c]
call fcn.00472a06
push dword [esp + 0x28]
push dword [esp + 0x30]
call fcn.00472a06
jmp 0x4c3a3a
mov ebp, dword [esp + 0x104]
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 8]
cmovb eax, dword [edi + 8]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004b6a9d
cmp dword [ebp + 0x10], 1
lea ecx, [esp + 0x20]
je 0x4c3977
cmp dword [edi + 0x10], 1
mov edx, ebp
push edi
jne 0x4c3992
call fcn.004b79d8
jmp 0x4c3997
cmp dword [edi + 0x10], 1
je 0x4c398f
push edi
mov edx, ebp
call fcn.004b79d8
mov dword [esp + 0x34], 1
jmp 0x4c3997
push ebp
mov edx, edi
call fcn.004b7abc
pop ecx
push esi
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
call fcn.004b8148
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
call fcn.004b7c74
push dword [esp + 0x44]
push dword [esp + 0x4c]
call fcn.00472a06
push dword [esp + 0x28]
push dword [esp + 0x30]
call fcn.00472a06
mov ebp, dword [esp + 0x34]
mov ecx, edi
push ebp
call fcn.004b82ba
test eax, eax
jg 0x4c3a3a
push ecx
push esi
push ebp
push edi
lea ecx, [esp + 0xb8]
call fcn.004c2fbe
jmp 0x4c3a19
mov ecx, dword [esp + 0x10c]
test ecx, ecx
je 0x4c3a03
mov eax, dword [ecx]
push edi
call dword [eax]
test al, al
je 0x4c3a19
mov ecx, edi
call fcn.004c2d73
test al, al
je 0x4c3a19
mov ecx, edi
call fcn.004c2c73
test al, al
jne 0x4c3a2c
push edi
lea ecx, [esp + 0xac]
call fcn.004c3012
test al, al
jne 0x4c39ef
jmp 0x4c3a2e
mov bl, 1
lea ecx, [esp + 0xa8]
call fcn.004c3a54
push dword [esp + 0x60]
push dword [esp + 0x68]
call fcn.00472a06
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0xf0
ret