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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
cmp byte [edx + 0xc], 1
mov esi, ecx
jne 0x4df00e
mov eax, dword [edx + 4]
cmp eax, 0x10000000
jae 0x4df030
mov ebx, dword [edx + 8]
mov ecx, dword [edx]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0
mov byte [esp + 0x4c], 0
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x3c]
push ebx
call fcn.004e64e0
add esp, 4
mov edi, dword [esp + 0x6c]
cmp edi, 2
jne 0x4df053
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
cmp ebx, ecx
mov dword [esp + 0x14], ecx
jbe 0x4df0b2
test ecx, ecx
je 0x4df122
push ecx
push 1
push ebx
push edi
call fcn.004ed040
add esp, 0x10
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4df3e0
cmp ecx, 0x10000000
jae 0x4df0c2
mov edx, dword [esp + 0x10]
test ecx, ecx
je 0x4df29b
cmp ecx, 1
jne 0x4df13d
movzx eax, byte [edx]
test al, al
jne 0x4df148
mov edi, 1
mov eax, edx
jmp 0x4df156
add edx, 0xc
movzx eax, byte [edx + 2]
movzx ecx, word [edx]
mov byte [esi + 0xe], al
mov word [esi + 0xc], cx
mov dword [esi], 0
mov word [esi + 8], 0x1713
jmp 0x4df34e
mov dword [esi], 0
mov dword [esi + 4], eax
mov dword [esi + 8], 0xc
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov byte [esi + 0x14], 0
jmp 0x4df34e
mov eax, dword [esp + 0x80]
movsd xmm0, qword [esp + 0x84]
movsd xmm3, qword [esp + 0x8c]
movsd xmm1, qword [esp + 0x94]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
movq xmm2, qword [esp + 0x78]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x9c]
movsd qword [esp + 0xa0], xmm0
movsd qword [esp + 0xa8], xmm3
movsd qword [esp + 0xb0], xmm1
mov dword [esp + 0xb8], eax
jmp 0x4df0e0
mov dword [esp + 0x10], edi
cmp ecx, 0x10000000
jb 0x4defe2
push 1
push ecx
push dword [esp + 0x18]
mov edi, ecx
call fcn.004ed020
mov edx, edi
add esp, 0xc
movd xmm2, edi
mov ecx, 0xc
xor edi, edi
movsd xmm1, qword [esp + 0xa8]
movsd xmm0, qword [esp + 0xa0]
mov eax, dword [esp + 0xb8]
mov ebx, ecx
shr ebx, 8
movsd qword [esp + 0x58], xmm1
movsd xmm1, qword [esp + 0xb0]
movsd qword [esp + 0x50], xmm0
mov dword [esp + 0x68], eax
movsd qword [esp + 0x60], xmm1
jmp 0x4df30a
push 1
push ebx
push edi
call fcn.004ed020
add esp, 0xc
mov cl, 7
mov dword [esp + 0x10], 1
jmp 0x4df29d
movzx eax, byte [edx]
test al, al
je 0x4df291
mov edi, dword [esp + 0x14]
test al, al
mov eax, edx
js 0x4df28d
add edi, 2
nop dword [eax]
cmp edi, 3
lea ebx, [eax + 1]
lea edi, [edi - 1]
je 0x4df172
cmp byte [eax], 0
mov eax, ebx
je 0x4df160
mov ecx, edi
xor edx, edx
dec ecx
setns al
js 0x4df3ed
mov dl, al
mov eax, dword [0x6b6a34]
movzx eax, byte [eax]
mov dword [esp + 0x20], edx
push edx
push ecx
mov dword [esp + 0x14], ecx
call fcn.004ed010
add esp, 8
test eax, eax
je 0x4df3f4
dec ebx
push dword [esp + 0xc]
push ebx
push eax
mov dword [esp + 0x2c], eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ebx, dword [esp + 0xc]
cmp ebx, 0xfffffff
ja 0x4df273
lea edx, [edi - 2]
xor eax, eax
nop dword [eax]
mov ecx, dword [esp + 0x20]
cmp edx, eax
movzx ecx, byte [ecx + eax]
lea eax, [eax + 1]
je 0x4df1e3
test cl, cl
je 0x4df1d0
mov dl, 0xc
mov ebx, edi
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
sub ebx, eax
cmp ebx, 0xfffffff
mov dword [esp + 0x1c], ebx
ja 0x4df356
movzx ecx, cl
mov dword [esp + 0x10], edx
shr ecx, 7
add ecx, edi
mov edx, ecx
sub edx, eax
cmp edx, 0x10000000
mov edx, dword [esp + 0xc]
jae 0x4df35a
sub ecx, dword [esp + 0x38]
mov ebx, edx
mov dl, 7
mov dword [esp + 0x18], edx
mov edx, ebx
cmp ecx, eax
jne 0x4df35a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4df252
push 1
push eax
push dword [esp + 0x18]
call fcn.004ed020
mov edx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [esp + 0x48]
cmp byte [esp + 0x4c], 0
je 0x4df38b
mov dword [esi], 1
mov dword [esi + 4], eax
mov byte [esi + 8], 1
jmp 0x4df3b1
push 1
push ebx
push dword [esp + 0x28]
call fcn.004ed020
mov edx, ebx
add esp, 0xc
mov cl, 6
mov ebx, 0x10101
jmp 0x4df2d1
mov cl, 0x17
jmp 0x4df29d
cmp byte [edx + 1], 0
js 0x4df37c
mov cl, 7
mov eax, dword [esp + 0x84]
movsd xmm0, qword [esp + 0x7c]
movsd xmm2, qword [esp + 0x6c]
movsd xmm1, qword [esp + 0x74]
mov ebx, 1
mov dword [esp + 0x68], eax
movsd qword [esp + 0x60], xmm0
movsd qword [esp + 0x58], xmm1
movsd qword [esp + 0x50], xmm2
mov eax, dword [esp + 0x14]
xor edi, edi
movd xmm2, edx
mov dword [esp + 0xc], edx
test eax, eax
je 0x4df306
push 1
push eax
push dword [esp + 0x18]
mov dword [esp + 0x24], ecx
movdqa xmmword [esp + 0x2c], xmm2
call fcn.004ed020
movdqa xmm2, xmmword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x1c]
movzx eax, cl
mov ecx, dword [esp + 0x68]
movsd xmm0, qword [esp + 0x60]
movsd xmm3, qword [esp + 0x50]
movsd xmm1, qword [esp + 0x58]
shl ebx, 8
or eax, ebx
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0xc]
movsd qword [esi + 0x28], xmm0
movsd qword [esi + 0x20], xmm1
movsd qword [esi + 0x18], xmm3
mov dword [esi], edi
mov dword [esi + 4], edx
mov dword [esi + 8], eax
movq qword [esi + 0xc], xmm2
mov dword [esi + 0x14], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 0xc]
mov ebx, 0x10101
cmp edi, 1
je 0x4df373
push 1
push edx
push dword [esp + 0x28]
call fcn.004ed020
add esp, 0xc
mov ecx, dword [esp + 0x18]
jmp 0x4df2d1
mov ecx, dword [esp + 0x14]
lea eax, [edx + 1]
lea edi, [ecx - 1]
jmp 0x4df156
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jbe 0x4df3c8
xor edx, edx
sub ecx, eax
mov dword [esi], 1
mov dword [esi + 4], eax
mov byte [esi + 8], 0x15
mov dword [esi + 0xc], eax
cmovb ecx, edx
mov edx, dword [esp + 0xc]
mov dword [esi + 0x10], ecx
mov eax, dword [esp + 0x20]
cmp edi, 1
je 0x4df34e
push 1
push edx
push eax
call fcn.004ed020
add esp, 0xc
jmp 0x4df34e
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
mov dword [esi], 2
jmp 0x4df34e
push ecx
push 1
call fcn.004ed3a0
add esp, 8
jmp 0x4df404
call fcn.004ed360
jmp 0x4df404
push dword [esp + 0xc]
push dword [esp + 0x24]
call fcn.004ed3a0
add esp, 8
ud2