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

Disassembly:
sub esp, 0x70
cmp dword [esp + 0x80], 0xa
push ebx
push ebp
push esi
push edi
jb 0x4de29d
mov edi, dword [esp + 0x94]
mov eax, dword [esp + 0x88]
mov ebp, dword [esp + 0x84]
add eax, ebp
mov esi, dword [esp + 0x8c]
push esi
mov dword [esp + 0x34], eax
lea ebx, [edi + 4]
call fcn.004cafe7
movzx eax, ax
mov dword [esp + 0x28], eax
lea eax, [esi + 2]
push eax
call fcn.004cafe7
movzx eax, ax
mov dword [esp + 0x20], eax
lea eax, [esi + 4]
push eax
call fcn.004cafe7
mov ecx, dword [esp + 0x9c]
add esi, 6
movzx eax, ax
sub ecx, eax
mov dword [esp + 0x44], eax
sub ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
sub ecx, eax
add eax, esi
sub ecx, 6
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x94]
add eax, 3
mov dword [esp + 0x40], ecx
shr eax, 2
push edi
lea ecx, [eax + ebp]
lea edx, [ecx + eax]
mov dword [esp + 0x4c], ecx
add eax, edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
call fcn.004c3e6e
mov edi, dword [esp + 0x44]
add esp, 0x10
shr eax, 0x10
movzx ebp, al
cmp edi, dword [esp + 0x90]
ja 0x4de29d
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x74]
push esi
push eax
call fcn.004dd5c4
add esp, 0xc
cmp eax, 0xffffff88
ja 0x4de2a0
push dword [esp + 0x18]
lea eax, [esp + 0x64]
push dword [esp + 0x20]
push eax
call fcn.004dd5c4
add esp, 0xc
cmp eax, 0xffffff88
ja 0x4de2a0
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
push esi
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004dd5c4
add esp, 0xc
cmp eax, 0xffffff88
ja 0x4de2a0
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
add eax, esi
push edi
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004dd5c4
add esp, 0xc
cmp eax, 0xffffff88
ja 0x4de2a0
lea eax, [esp + 0x40]
push eax
call fcn.004d128a
mov edi, eax
lea eax, [esp + 0x54]
push eax
call fcn.004d128a
or edi, eax
lea eax, [esp + 0x68]
push eax
call fcn.004d128a
mov esi, eax
lea eax, [esp + 0x7c]
push eax
or esi, edi
call fcn.004d128a
add esp, 0x10
or eax, esi
jne 0x4de1e0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff9
mov dword [esp + 0x38], eax
cmp dword [esp + 0x10], eax
jae 0x4de1e0
mov esi, dword [esp + 0x84]
lea eax, [esp + 0x70]
push ebp
push ebx
push eax
push esi
call fcn.004d33b3
mov edi, dword [esp + 0x30]
add esi, eax
push ebp
push ebx
lea eax, [esp + 0x78]
push eax
push edi
call fcn.004d33b3
push ebp
add edi, eax
lea eax, [esp + 0x74]
push ebx
push eax
push dword [esp + 0x40]
call fcn.004d33b3
add dword [esp + 0x44], eax
lea eax, [esp + 0x70]
push ebp
push ebx
push eax
push dword [esp + 0x4c]
call fcn.004d33b3
add dword [esp + 0x50], eax
add esp, 0x40
lea eax, [esp + 0x70]
push ebp
push ebx
push eax
push esi
call fcn.004d33b3
push ebp
add esi, eax
lea eax, [esp + 0x74]
push ebx
push eax
push edi
mov dword [esp + 0xa4], esi
call fcn.004d33b3
mov esi, dword [esp + 0x34]
add edi, eax
push ebp
push ebx
lea eax, [esp + 0x78]
mov dword [esp + 0x48], edi
push eax
push esi
call fcn.004d33b3
add esi, eax
lea eax, [esp + 0x70]
push ebp
push ebx
push eax
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x4c]
push esi
call fcn.004d33b3
add esp, 0x40
add esi, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x10], esi
push eax
call fcn.004d128a
mov edi, eax
lea eax, [esp + 0x54]
push eax
call fcn.004d128a
or edi, eax
lea eax, [esp + 0x68]
push eax
call fcn.004d128a
mov esi, eax
lea eax, [esp + 0x7c]
or esi, edi
push eax
call fcn.004d128a
add esp, 0x10
or eax, esi
mov eax, dword [esp + 0x38]
je 0x4de0e9
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
ja 0x4de29d
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x28]
ja 0x4de29d
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x2c]
ja 0x4de29d
push ebp
push ebx
push ecx
lea ecx, [esp + 0x7c]
push ecx
push eax
call fcn.004d313b
push ebp
push ebx
push dword [esp + 0x44]
lea eax, [esp + 0x80]
push eax
push esi
call fcn.004d313b
push ebp
push ebx
push dword [esp + 0x5c]
lea eax, [esp + 0x84]
push eax
push edi
call fcn.004d313b
push ebp
push ebx
push dword [esp + 0x74]
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x5c]
call fcn.004d313b
add esp, 0x50
lea eax, [esp + 0x40]
push eax
call fcn.004c750a
mov edx, eax
lea eax, [esp + 0x54]
push eax
call fcn.004c750a
and edx, eax
lea eax, [esp + 0x68]
push eax
call fcn.004c750a
and edx, eax
lea eax, [esp + 0x7c]
push eax
call fcn.004c750a
add esp, 0x10
test eax, edx
je 0x4de29d
mov eax, dword [esp + 0x88]
jmp 0x4de2a0
push 0xffffffffffffffec
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret