Function at 0x4d351f
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 0x4d3876
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x84]
add eax, edi
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x94]
push esi
movzx ebp, word [eax]
lea ebx, [eax + 2]
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
movzx ecx, ax
lea edx, [esi + 6]
mov eax, dword [esp + 0x94]
add esp, 0xc
add eax, 3
mov dword [esp + 0x34], edx
add edx, dword [esp + 0x24]
shr eax, 2
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], ecx
lea edx, [eax + edi]
mov edi, dword [esp + 0x18]
lea esi, [edx + eax]
mov dword [esp + 0x3c], edx
add eax, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x90]
sub esi, ecx
mov dword [esp + 0x2c], eax
sub esi, edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
sub esi, eax
sub esi, 6
mov dword [esp + 0x20], edx
cmp esi, dword [esp + 0x90]
ja 0x4d3876
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x78]
push eax
call fcn.004d266a
add esp, 0xc
cmp eax, 0xffffff88
ja 0x4d3879
push edi
push dword [esp + 0x20]
lea eax, [esp + 0x68]
push eax
call fcn.004d266a
add esp, 0xc
cmp eax, 0xffffff88
ja 0x4d3879
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
push edi
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004d266a
add esp, 0xc
cmp eax, 0xffffff88
ja 0x4d3879
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
add eax, edi
push esi
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004d266a
add esp, 0xc
cmp eax, 0xffffff88
ja 0x4d3879
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 0x4d37b9
mov eax, dword [esp + 0x30]
add eax, 0xfffffff9
mov dword [esp + 0x38], eax
cmp dword [esp + 0x10], eax
jae 0x4d37b9
push ebp
lea eax, [esp + 0x74]
push ebx
push eax
call fcn.004d1310
mov esi, dword [esp + 0x90]
push ebp
push ebx
mov byte [esi], al
lea eax, [esp + 0x74]
push eax
call fcn.004d1310
mov edi, dword [esp + 0x38]
push ebp
push ebx
mov byte [edi], al
lea eax, [esp + 0x70]
push eax
call fcn.004d1310
mov ecx, dword [esp + 0x38]
push ebp
push ebx
mov byte [ecx], al
lea eax, [esp + 0x6c]
inc ecx
push eax
mov dword [esp + 0x44], ecx
call fcn.004d1310
mov ecx, dword [esp + 0x40]
push ebp
push ebx
mov byte [ecx], al
lea eax, [esp + 0xa8]
inc ecx
push eax
mov dword [esp + 0x4c], ecx
call fcn.004d1310
mov byte [esi + 1], al
add esi, 2
push ebp
lea eax, [esp + 0xa0]
mov dword [esp + 0xc4], esi
push ebx
push eax
call fcn.004d1310
add esp, 0x48
mov byte [edi + 1], al
lea eax, [esp + 0x50]
add edi, 2
mov dword [esp + 0x20], edi
push ebp
push ebx
push eax
call fcn.004d1310
mov ecx, dword [esp + 0x20]
push ebp
push ebx
mov byte [ecx], al
lea eax, [esp + 0x54]
inc ecx
push eax
mov dword [esp + 0x2c], ecx
call fcn.004d1310
mov ecx, dword [esp + 0x28]
mov byte [ecx], al
lea eax, [esp + 0x58]
inc ecx
push eax
mov dword [esp + 0x2c], ecx
call fcn.004d128a
mov edi, eax
lea eax, [esp + 0x6c]
push eax
call fcn.004d128a
or edi, eax
lea eax, [esp + 0x80]
push eax
call fcn.004d128a
mov esi, eax
lea eax, [esp + 0x94]
or esi, edi
push eax
call fcn.004d128a
add esp, 0x28
or eax, esi
mov eax, dword [esp + 0x38]
je 0x4d36af
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
ja 0x4d3876
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x28]
ja 0x4d3876
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x2c]
ja 0x4d3876
push ebp
push ebx
push ecx
lea ecx, [esp + 0x7c]
push ecx
push eax
call fcn.004d3080
push ebp
push ebx
push dword [esp + 0x44]
lea eax, [esp + 0x80]
push eax
push esi
call fcn.004d3080
push ebp
push ebx
push dword [esp + 0x5c]
lea eax, [esp + 0x84]
push eax
push edi
call fcn.004d3080
push ebp
push ebx
push dword [esp + 0x74]
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x5c]
call fcn.004d3080
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 0x4d3876
mov eax, dword [esp + 0x88]
jmp 0x4d3879
push 0xffffffffffffffec
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret