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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x652018]
xor eax, esp
mov dword [esp + 0x270], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x34]
push ebx
mov ebx, dword [ebp + 0x30]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x48]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x38]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0x4c]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x70], ecx
mov ecx, dword [ebp + 0x50]
mov dword [esp + 0x38], edx
mov dword [esp + 0x68], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], ecx
push edi
mov edi, dword [ebp + 0x40]
mov dword [esp + 0x58], edi
test esi, esi
jne 0x4c65e0
mov ecx, edx
call 0x3e9c7e
mov ecx, eax
call 0x3c4d6e
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x54]
xor esi, esi
push esi
push 0x10000
push dword [ebp + 0x2c]
mov dword [eax], esi
push dword [ebp + 0x28]
mov dword [esp + 0x24], esi
mov dword [esp + 0x6c], esi
mov dword [edi], esi
call fcn.0040125e
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x1f], al
lea esp, [esp]
xor edi, edi
mov dword [esp + 0x40], edi
mov edi, ecx
mov dword [esp + 0x18], edi
test ecx, ecx
je 0x4c6713
mov esi, edi
test edi, edi
je 0x4c6651
lea ebx, [ebx]
movzx eax, byte [esi]
cmp eax, 3
je 0x4c6640
cmp eax, 6
jne 0x4c6651
mov esi, dword [esi + 0x50]
jmp 0x4c664d
mov ecx, esi
call 0x3dc91e
test eax, eax
je 0x4c664d
mov esi, eax
test esi, esi
jne 0x4c662e
movzx eax, byte [esi]
test byte [eax + eax*2 + 0x405211], 0x80
jne 0x4c6670
mov al, byte [eax + eax*2 + 0x405210]
and al, 4
movzx eax, al
neg eax
sbb eax, eax
and esi, eax
movzx eax, byte [esi]
test byte [eax + eax*2 + 0x405210], 0x40
je 0x4c66ea
mov esi, edi
test edi, edi
je 0x4c66a6
movzx eax, byte [esi]
cmp eax, 3
je 0x4c6695
cmp eax, 6
jne 0x4c66a6
mov esi, dword [esi + 0x50]
jmp 0x4c66a2
mov ecx, esi
call 0x3dc91e
test eax, eax
je 0x4c66a2
mov esi, eax
test esi, esi
jne 0x4c6683
movzx eax, byte [esi]
test byte [eax + eax*2 + 0x405211], 0x80
jne 0x4c66c5
mov al, byte [eax + eax*2 + 0x405210]
and al, 4
movzx eax, al
neg eax
sbb eax, eax
and esi, eax
mov ecx, esi
call 0x3dd2de
test al, al
jne 0x4c66ea
cmp byte [esp + 0x1f], al
je 0x4c677f
test byte [esi + 0x79], 4
je 0x4c66ea
test byte [esi + 1], 8
je 0x4c678f
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ecx, ebx
call 0x3e084e
mov ebx, dword [esp + 0x24]
mov edi, eax
mov dword [esp + 0x18], eax
test edi, edi
jne 0x4c6622
mov al, byte [esp + 0x1f]
mov ecx, dword [esp + 0x3c]
test al, al
jne 0x4c673f
push dword [esp + 0x74]
push dword [esp + 0x48]
push dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.004c501e
mov ecx, eax
mov al, byte [esp + 0x1f]
mov dword [esp + 0x3c], ecx
test ecx, ecx
jne 0x4c660e
test esi, esi
je 0x4c6764
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4c6764
lea ecx, [ecx]
mov edx, dword [esi]
test edx, edx
je 0x4c675a
mov ecx, dword [eax + 0x24]
mov dword [ecx + 0x24], edx
mov eax, dword [eax + 0x28]
add esi, 4
test eax, eax
jne 0x4c674e
mov ecx, dword [esp + 0x27c]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
xor ecx, esp
call 0x59f18f
mov esp, ebp
pop ebp
ret 0x4c
test byte [esi + 0x79], 4
je 0x4c678f
test byte [esi + 1], 8
je 0x4c66ea
test bl, 0x10
je 0x4c679e
test byte [esi + 1], 8
jne 0x4c66ea
test bl, 0x20
je 0x4c67cd
mov ecx, dword [esi + 0x50]
call 0x3dc91e
test eax, eax
jne 0x4c67cd
mov ecx, esi
call 0x3fbafe
cmp byte [eax], 0x1f
je 0x4c67cd
mov al, byte [esi + 0x78]
not al
test al, 1
jne 0x4c67cd
cmp byte [esi], 0xc
jne 0x4c66ea
test bl, 8
je 0x4c67db
cmp byte [esi], 0xc
je 0x4c66ea
push dword [esp + 0x60]
mov ecx, dword [esp + 0x2c]
push 0
push edi
call 0x3fc28e
test al, al
je 0x4c66ea
cmp dword [esp + 0x30], 0
jbe 0x4c682f
mov ebx, dword [esp + 0x18]
xor edi, edi
mov ecx, ebx
call 0x3db54e
test eax, eax
je 0x4c6816
lea ecx, [ecx]
mov eax, dword [eax + 0x50]
inc edi
test eax, eax
jne 0x4c680e
cmp dword [esp + 0x30], edi
je 0x4c6827
mov eax, dword [esp + 0x54]
inc dword [eax]
jmp 0x4c66ee
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x13]
mov dword [esp + 0x68], 0
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push eax
lea eax, [esp + 0x70]
mov byte [esp + 0x1b], 0
push eax
mov ecx, esi
call 0x3e406e
mov esi, dword [esp + 0x2c]
test ebx, 0x2000
je 0x4c6867
dec esi
cmp esi, dword [esp + 0x68]
jb 0x4c6895
mov ebx, dword [esp + 0x38]
cmp esi, ebx
jbe 0x4c687c
cmp byte [esp + 0x13], 0
je 0x4c6895
mov eax, dword [esp + 0x24]
test al, 1
je 0x4c6888
cmp esi, ebx
jb 0x4c6895
and eax, 2
mov dword [esp + 0x38], eax
je 0x4c68a0
cmp esi, ebx
jbe 0x4c68a0
mov eax, dword [esp + 0x58]
inc dword [eax]
jmp 0x4c66ea
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x4c68c4
mov eax, dword [esp + 0x28]
mov edx, edi
mov ecx, dword [esp + 0x6c]
push dword [eax + 0x10]
add eax, 0x6c
push eax
call fcn.0042194e
mov ecx, eax
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4c68e7
push 0
push ecx
mov ecx, dword [esp + 0x30]
push eax
push dword [esp + 0x7c]
push edi
push 0
lea ecx, [ecx + 0x6c]
call fcn.004186fe
mov edi, eax
jmp 0x4c6923
mov ecx, edi
call 0x3db47e
test al, al
je 0x4c691f
cmp dword [esp + 0x14], 0
jne 0x4c691f
push dword [esp + 0x2c]
lea eax, [esp + 0x60]
push dword [esp + 0x38]
lea edx, [esp + 0x80]
push eax
push ecx
mov ecx, dword [esp + 0x58]
call fcn.004c6b0e
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x40]
mov al, byte [esp + 0x13]
test al, al
je 0x4c692f
cmp esi, ebx
jne 0x4c699b
sub esp, 0x10
mov esi, dword [esp + 0x34]
mov eax, esp
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
push dword [esp + 0x5c]
mov byte [eax], 0
push 0
push 0
push dword [esp + 0x60]
mov dword [eax + 4], 0
push dword [esp + 0x68]
mov dword [eax + 8], edi
push dword [esp + 0x88]
mov dword [eax + 0xc], 0
push dword [esp + 0x48]
push esi
push dword [esp + 0x60]
push dword [esp + 0x84]
push dword [esp + 0x64]
push dword [esp + 0x50]
push dword [esp + 0x74]
push 0
push ebx
call fcn.004c559e
mov ecx, eax
mov al, byte [esp + 0x13]
mov dword [esp + 0x20], ecx
jmp 0x4c69a7
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
test al, al
je 0x4c66ee
cmp dword [esp + 0x38], 0
jne 0x4c66ee
sub esp, 0x10
mov eax, esp
push dword [esp + 0x5c]
mov byte [eax], 0
push 0
push 0
push dword [esp + 0x60]
mov dword [eax + 4], 0
push dword [esp + 0x68]
mov dword [eax + 8], edi
push dword [esp + 0x88]
mov dword [eax + 0xc], 0
push ecx
mov ecx, dword [esp + 0x54]
push esi
push dword [esp + 0x60]
mov esi, dword [esp + 0x48]
push dword [esp + 0x84]
push dword [esp + 0x64]
push esi
push dword [esp + 0x74]
push 1
push ebx
call fcn.004c559e
mov dword [esp + 0x20], eax
jmp 0x4c66f2