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

Disassembly:
sub esp, 0xd8
mov eax, dword [0x501008]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xdc]
push ebx
mov dword [esp + 0x38], eax
mov ebx, ecx
mov eax, dword [esp + 0xe4]
xor ecx, ecx
push ebp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xec]
push esi
mov dword [esp + 0x44], eax
mov eax, dword [edx]
push edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
cmp dword [edx + 0x10], ecx
jne 0x4d1c85
push ecx
push ecx
push 0x4eb896
push ebx
call fcn.0045c0f0
add esp, 0x10
jmp 0x4d1f7b
mov ebp, dword [esp + 0xf8]
mov edx, 0xffffffc0
cmp dword [esp + 0xfc], edx
mov eax, 0x40
mov ebx, 1
cmovge edx, dword [esp + 0xfc]
cmp edx, eax
cmovg edx, eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], ebx
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x50], xmm0
test edx, edx
js 0x4d1cd4
lea eax, [edx - 1]
add eax, ebx
cdq
idiv ebx
jmp 0x4d1cd8
mov eax, edx
neg eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], 0
test ebx, ebx
jle 0x4d1dfb
mov edx, dword [esp + 0x2c]
lea edi, [esp + 0x80]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
xorps xmm0, xmm0
xor esi, esi
or ebx, 0xffffffff
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
cmp dword [eax + 0x18], esi
jle 0x4d1db2
mov dword [esp + 0x68], 0
xorps xmm0, xmm0
mov dword [esp + 0x6c], 0
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
mov dword [esp + 0x28], 0
test ebp, ebp
js 0x4d1d4f
cmp esi, ebp
jne 0x4d1da8
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x58]
push eax
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x38]
push esi
call fcn.004cffc0
mov ecx, eax
add esp, 0x18
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x4d1e4c
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
cmp ecx, ebx
jle 0x4d1da4
movups xmm0, xmmword [esp + 0x68]
mov ebx, ecx
movups xmmword [edi], xmm0
movq xmm0, qword [esp + 0x78]
movq qword [edi + 0x10], xmm0
mov ecx, dword [esp + 0x1c]
inc esi
cmp esi, dword [eax + 0x18]
jl 0x4d1d20
mov esi, dword [esp + 0x30]
or ecx, dword [edi + 8]
inc esi
or edx, dword [edi + 0xc]
add edi, 0x18
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], esi
cmp esi, ebx
jl 0x4d1d07
cmp dword [esp + 0x50], ecx
jne 0x4d1de4
cmp dword [esp + 0x54], edx
je 0x4d1df7
mov ecx, dword [esp + 0x14]
cmp ebx, 4
je 0x4d1dfb
mov edx, dword [esp + 0x40]
inc ebx
jmp 0x4d1cb3
mov ecx, dword [esp + 0x14]
xor esi, esi
test ebx, ebx
jle 0x4d1e4c
mov ebp, dword [esp + 0x44]
lea edi, [esp + 0x80]
nop dword [eax]
test ecx, ecx
jne 0x4d1e48
lea eax, [esp + 0x5c]
mov edx, edi
push eax
push dword [esp + 0x4c]
lea eax, [ebx - 1]
push dword [esp + 0x54]
cmp esi, eax
push ebp
push dword [esp + 0x34]
sete cl
push ecx
mov ecx, dword [esp + 0x50]
push esi
call fcn.004d04f0
inc esi
add esp, 0x1c
add edi, 0x18
mov ecx, eax
cmp esi, ebx
jl 0x4d1e10
mov dword [esp + 0x14], ecx
mov ebp, dword [esp + 0x18]
mov esi, dword [ebp + 0xfc]
test esi, esi
je 0x4d1e98
mov edi, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4d1e71
push eax
call dword [0x5010a8]
add esp, 4
mov edx, esi
mov ecx, edi
call fcn.00437a00
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4d1e8b
push eax
call dword [0x5010b0]
add esp, 4
push ebx
call fcn.0045b6f0
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ebp + 0xfc], 0
test ecx, ecx
je 0x4d1f1c
push ecx
push dword [esp + 0x40]
call fcn.0045c380
mov ebx, dword [esp + 0x64]
add esp, 8
test ebx, ebx
je 0x4d1f7b
cmp dword [0x501058], 0
je 0x4d1f10
mov eax, dword [0x503e30]
test eax, eax
je 0x4d1edb
push eax
call dword [0x5010a8]
add esp, 4
push ebx
call dword [0x501084]
sub dword [0x503c58], eax
add esp, 4
dec dword [0x503c7c]
push ebx
call dword [0x50107c]
mov eax, dword [0x503e30]
add esp, 4
test eax, eax
je 0x4d1f7b
push eax
call dword [0x5010b0]
add esp, 4
jmp 0x4d1f7b
push ebx
call dword [0x50107c]
add esp, 4
jmp 0x4d1f7b
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x5c]
push fcn.00437940
push 1
mov ecx, dword [ebx]
push 0xffffffffffffffff
call fcn.00455f80
add esp, 0xc
cmp eax, 0x12
jne 0x4d1f7b
mov esi, dword [ebx]
mov dword [ebx + 0x14], eax
mov eax, 0x2400
test word [esi + 8], ax
jne 0x4d1f52
cmp dword [esi + 0x18], 0
je 0x4d1f59
mov ecx, esi
call fcn.00455730
mov eax, 0xa02
mov dword [esi + 0x10], str.string_or_blob_too_big
mov dword [esi + 0x24], 0
mov dword [esi + 0xc], 0x16
mov word [esi + 8], ax
mov byte [esi + 0xa], 1
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d99e2
add esp, 0xd8
ret