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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x260
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp esi, eax
jae 0x51e422
mov byte [ecx + 8], 0x13
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], 0
mov dword [ecx], 0
jmp 0x51ee2f
add edx, eax
sub esi, eax
mov dword [esp + 0x34], 8
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x48], 0
mov dword [esp + 0xc], edx
je 0x51ebb8
pxor xmm0, xmm0
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0xc]
mov dword [esp + 0x10], esi
xor eax, eax
xor ebx, ebx
xor esi, esi
xor ecx, ecx
nop word cs:[eax + eax]
nop
movzx edx, byte [edi + eax]
cmp ecx, 0x3f
mov dword [esp + 4], esi
mov dword [esp + 8], eax
jne 0x51e49a
cmp dl, 2
jae 0x51ebba
mov dh, dl
mov dword [esp + 0x24], ebx
xor ebx, ebx
mov esi, 0
and dh, 0x7f
movzx edi, dh
shld ebx, edi, cl
shl edi, cl
test cl, 0x20
cmovne ebx, edi
cmovne edi, esi
mov esi, dword [esp + 4]
or esi, ebx
mov ebx, dword [esp + 0x24]
or ebx, edi
test dl, dl
jns 0x51e4e4
mov eax, dword [esp + 8]
add ecx, 7
mov edi, dword [esp + 0xc]
mov dh, dl
inc eax
cmp dword [esp + 0x10], eax
jne 0x51e480
jmp 0x51ebcb
mov edx, dword [esp + 0x10]
mov ecx, ebx
or ecx, esi
je 0x51ec48
mov eax, dword [esp + 8]
lea ecx, [edx - 1]
cmp ecx, eax
je 0x51ec71
mov edi, dword [esp + 0xc]
mov dword [esp + 4], esi
mov esi, edx
mov dword [esp + 0x24], ebx
add esi, 0xfffffffe
movzx ecx, byte [edi + eax + 1]
mov edx, ecx
and edx, 0x7f
test cl, cl
js 0x51e528
sub esi, eax
lea edi, [edi + eax + 2]
jmp 0x51e596
cmp esi, eax
je 0x51ee37
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edi, edx
mov esi, dword [esp + 0x10]
movzx edi, di
movzx ecx, byte [ebx + eax + 2]
mov eax, dword [esp + 8]
add esi, 0xfffffffd
mov edx, ecx
and edx, 0x7f
shl edx, 7
or edi, edx
test cl, cl
mov edx, edi
lea edi, [ebx + eax + 3]
js 0x51e565
sub esi, eax
jmp 0x51e596
cmp esi, eax
je 0x51ee54
movzx ecx, byte [edi]
cmp cx, 3
ja 0x51ee61
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
movzx ebx, cx
movzx edx, dx
shl ebx, 0xe
or edx, ebx
sub esi, eax
lea edi, [edi + eax + 4]
add esi, 0xfffffffc
test dx, dx
je 0x51ec94
test esi, esi
je 0x51ee3f
movzx eax, byte [edi]
cmp al, 2
jae 0x51ec98
inc edi
dec esi
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0xa0], 0
movdqa xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], 0
je 0x51ec9f
mov byte [esp + 0x2b], al
mov dword [esp + 8], eax
mov dword [esp + 0x4c], edx
movzx eax, byte [edi]
lea edx, [esi - 1]
lea ecx, [edi + 1]
mov ebx, eax
and ebx, 0x7f
test al, al
jns 0x51e6b0
test edx, edx
je 0x51ec24
movzx eax, byte [edi + 1]
movzx ebx, bx
lea edx, [esi - 2]
mov ecx, eax
and ecx, 0x7f
shl ecx, 7
or ebx, ecx
test al, al
lea ecx, [edi + 2]
jns 0x51e6b0
test edx, edx
je 0x51ec24
movzx eax, byte [ecx]
cmp ax, 3
ja 0x51ecbe
movzx eax, ax
add edi, 3
add esi, 0xfffffffd
movzx ebx, bx
shl eax, 0xe
mov ecx, edi
mov edx, esi
or ebx, eax
nop dword [eax + eax]
test bx, bx
je 0x51e8ec
test edx, edx
je 0x51ec24
mov dword [esp + 0x20], ebx
movzx ebx, byte [ecx]
lea esi, [edx - 1]
lea edi, [ecx + 1]
mov eax, ebx
and eax, 0x7f
test bl, bl
jns 0x51e6fa
test esi, esi
je 0x51eca3
movzx ebx, byte [ecx + 1]
movzx eax, ax
lea esi, [edx - 2]
mov edi, ebx
and edi, 0x7f
shl edi, 7
or eax, edi
test bl, bl
lea edi, [ecx + 2]
js 0x51e73d
mov ebx, dword [esp + 0x20]
cmp ax, 0x21
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
je 0x51e779
movzx esi, ax
test esi, esi
je 0x51ec8b
movzx eax, bx
mov ebx, dword [esp + 0x2c]
shl esi, 0x10
mov ecx, 0xffffffff
xor edx, edx
xor edi, edi
mov dword [esp + 0xc], 0
or esi, eax
and ebx, ecx
xor ecx, ecx
jmp 0x51e878
mov ebx, dword [esp + 0x20]
test esi, esi
je 0x51eca3
movzx edi, byte [edi]
cmp di, 3
ja 0x51ecbe
movzx edi, di
add edx, 0xfffffffd
add ecx, 3
movzx eax, ax
shl edi, 0xe
mov esi, edx
or eax, edi
mov edi, ecx
cmp ax, 0x21
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
jne 0x51e70c
test esi, esi
je 0x51ec8f
xor eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
xor ecx, ecx
nop word cs:[eax + eax]
nop
mov bh, byte [edi + eax]
cmp ecx, 0x3f
jne 0x51e7b8
movzx edx, bh
test edx, edx
je 0x51e7b8
cmp edx, 0x7f
jne 0x51ec08
mov dl, bh
xor esi, esi
mov edi, ebx
mov ebx, 0
and dl, 0x7f
movzx edx, dl
shld esi, edx, cl
shl edx, cl
test cl, 0x20
cmovne esi, edx
cmovne edx, ebx
mov ebx, edi
mov edi, dword [esp + 8]
or dword [esp + 0xc], edx
or edi, esi
test bh, bh
jns 0x51e800
mov edx, dword [esp + 0x14]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x10]
inc eax
add ecx, 7
cmp edx, eax
jne 0x51e7a0
jmp 0x51ebea
add ecx, 7
mov edx, 0xffffffff
mov esi, 0
cmp ecx, 0x40
setl byte [esp + 8]
and bh, 0x40
shl edx, cl
shr bh, 6
test cl, 0x20
mov ecx, 0xffffffff
cmovne ecx, edx
cmovne edx, esi
test byte [esp + 8], bh
mov ebx, dword [esp + 0x2c]
cmove ecx, esi
cmove edx, esi
movzx esi, word [esp + 0x20]
or edi, ecx
mov ecx, dword [esp + 0xc]
or esi, 0x210000
or ecx, edx
mov edx, ecx
mov dword [esp + 0xc], ecx
mov ecx, 0xffffffff
and ebx, ecx
mov ecx, dword [esp + 0x10]
shrd edx, edi, 0x10
shr edi, 0x10
lea ecx, [ecx + eax + 1]
not eax
add dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov cl, ah
mov eax, edx
mov dword [esp + 8], ecx
movzx ecx, cl
mov dword [esp + 0x18], edi
mov edi, edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], ebx
shl eax, 0x10
shl ecx, 8
shld edi, edx, 0x10
or ecx, eax
movzx eax, byte [esp + 0xc]
mov dword [esp + 0xfc], edi
or eax, ecx
mov dword [esp + 0xf8], eax
mov dword [esp + 0x100], esi
mov dword [esp + 0x104], ebx
lea eax, [esp + 0xf8]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.0044e960
add esp, 8
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
test esi, esi
jne 0x51e649
jmp 0x51eca3
test edx, edx
je 0x51ec24
movzx ebx, byte [ecx]
lea edi, [ecx + 1]
lea esi, [edx - 1]
mov dword [esp + 0xc], edi
mov eax, ebx
and eax, 0x7f
test bl, bl
jns 0x51e935
test esi, esi
je 0x51eef4
movzx ebx, byte [ecx + 1]
movzx eax, ax
lea esi, [edx - 2]
mov edi, ebx
and edi, 0x7f
shl edi, 7
or eax, edi
test bl, bl
lea ebx, [ecx + 2]
mov dword [esp + 0xc], ebx
js 0x51eb81
mov dword [esp + 0x10], esi
test ax, ax
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 8]
jne 0x51ee6b
lea ecx, [esp + 0x68]
movq xmm1, qword [esp + 0x50]
movdqu xmm0, xmmword [esp + 0x58]
movsd xmm3, qword [ecx + 8]
movsd xmm4, qword [ecx + 0x10]
movsd xmm2, qword [ecx]
movd eax, xmm1
movsd qword [esp + 0xc0], xmm3
movsd xmm3, qword [ecx + 0x18]
movsd qword [esp + 0xc8], xmm4
movsd xmm4, qword [ecx + 0x20]
cmp eax, 2
movsd qword [esp + 0xb8], xmm2
movsd qword [esp + 0xd0], xmm3
movsd xmm3, qword [ecx + 0x28]
movsd qword [esp + 0xd8], xmm4
movsd xmm4, qword [ecx + 0x30]
movsd qword [esp + 0xe0], xmm3
movsd xmm3, qword [ecx + 0x38]
movsd qword [esp + 0xe8], xmm4
movsd qword [esp + 0xf0], xmm3
je 0x51ee8b
movsd xmm3, qword [esp + 0xe8]
lea eax, [esp + 0x110]
movsd xmm4, qword [esp + 0xe0]
movq xmm2, qword [esp + 0xf0]
movsd qword [eax + 0x30], xmm3
movsd xmm3, qword [esp + 0xd8]
movsd qword [eax + 0x28], xmm4
movsd xmm4, qword [esp + 0xd0]
movq qword [eax + 0x38], xmm2
movsd qword [eax + 0x20], xmm3
movsd xmm3, qword [esp + 0xc8]
movsd qword [eax + 0x18], xmm4
movsd xmm4, qword [esp + 0xb8]
movsd qword [eax + 0x10], xmm3
movq xmm3, qword [esp + 0xc0]
movsd qword [eax], xmm4
movq qword [eax + 8], xmm3
movq qword [esp + 0xf8], xmm1
movdqu xmmword [esp + 0x100], xmm0
movzx eax, byte [esp + 0x2b]
lea ecx, [esp + 0xf8]
push ecx
push eax
push edx
push dword [esp + 0x10]
push edi
lea eax, [esp + 0x64]
push eax
call fcn.0044e860
add esp, 0x18
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
lea ebx, [esp + 0x208]
mov ecx, edi
mov eax, esi
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], esi
mov dword [esp + 4], edi
shld ecx, esi, 0x10
mov esi, dword [esp + 0x64]
mov dword [esp + 0x1c], ecx
mov ecx, edi
mov edi, ebx
shr ecx, 0x10
cmp edx, 3
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], esi
lea esi, [esp + 0x68]
mov dword [esp + 8], ecx
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
je 0x51eec0
lea eax, [esp + 0x1b8]
mov ecx, 0x14
mov esi, ebx
cmp edx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
je 0x51ec48
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x150], edx
lea edi, [esp + 0x168]
mov esi, eax
mov dword [esp + 0x154], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x158], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x15c], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x160], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x164], ecx
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x150]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0044dab0
add esp, 8
test al, al
mov eax, dword [esp + 0x30]
pxor xmm0, xmm0
jne 0x51eeeb
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x51e464
jmp 0x51ebd3
test esi, esi
je 0x51eef4
mov edi, dword [esp + 0xc]
movzx edi, byte [edi]
cmp di, 3
ja 0x51ecbe
movzx edi, di
movzx eax, ax
add ecx, 3
add edx, 0xfffffffd
shl edi, 0xe
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
or eax, edi
jmp 0x51e939
jmp 0x51ebd3
mov dword [esp + 0x14], eax
mov al, 6
xor esi, esi
mov dword [esp + 4], eax
jmp 0x51ecf7
add edi, dword [esp + 0x10]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0xc]
mov al, 0x13
xor esi, esi
mov dword [esp + 4], eax
mov ah, dh
mov dword [esp + 0x14], eax
jmp 0x51ecf7
add edi, edx
mov al, 0x13
xor esi, esi
mov dword [esp + 4], eax
cmp dword [esp + 0x50], 0
mov dword [esp + 0x14], ebx
jne 0x51ecd7
jmp 0x51ecef
mov al, 7
xor esi, esi
mov dword [esp + 4], eax
cmp dword [esp + 0x50], 0
mov dword [esp + 0x14], ebx
jne 0x51ecd7
jmp 0x51ecef
mov al, 0x13
xor esi, esi
mov edi, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
mov bh, al
cmp dword [esp + 0x50], 0
mov dword [esp + 0x14], ebx
jne 0x51ecd7
jmp 0x51ecef
movq xmm0, qword [esp + 0x44]
mov ebx, dword [esp + 0x30]
movq xmm2, qword [esp + 0x34]
movq xmm1, qword [esp + 0x3c]
movq qword [ebx + 0x10], xmm0
movq qword [ebx + 8], xmm1
movq qword [ebx], xmm2
jmp 0x51ee2f
mov edi, dword [esp + 0xc]
lea edi, [edi + eax + 1]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov al, 0x13
xor esi, esi
mov dword [esp + 4], eax
jmp 0x51ecf7
mov al, 9
jmp 0x51ecc2
jmp 0x51ebec
mov al, 8
jmp 0x51ec9a
mov al, 0xa
jmp 0x51ee41
mov dword [esp + 8], eax
mov al, 0x13
xor esi, esi
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
mov bh, al
cmp dword [esp + 0x50], 0
mov dword [esp + 0x14], ebx
jne 0x51ecd7
jmp 0x51ecef
xor esi, esi
mov al, 6
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
mov bh, al
cmp dword [esp + 0x50], 0
mov dword [esp + 0x14], ebx
je 0x51ecef
cmp dword [esp + 0x58], 0
je 0x51ecef
push dword [esp + 0x54]
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
movzx edx, byte [esp + 4]
shld ebx, ecx, 0x10
shl ecx, 0x10
movzx eax, ah
shl eax, 8
or eax, ecx
or edx, eax
mov eax, dword [esp + 0x30]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x14], esi
mov dword [eax + 0x10], edi
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
mov dword [eax], 0
test edi, edi
je 0x51ed63
lea ebx, [esi + 8]
jmp 0x51ed46
add ebx, 0x68
dec edi
je 0x51ed63
cmp dword [ebx - 8], 0
je 0x51ed40
cmp dword [ebx], 0
je 0x51ed40
push dword [ebx - 4]
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
jmp 0x51ed40
cmp dword [esp + 0x38], 0
je 0x51ed78
push esi
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x51edaf
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], ecx
mov ecx, 1
mov dword [esp + 0x6c], edx
jmp 0x51edb3
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x70], eax
lea ecx, [esp + 0xf8]
lea edx, [esp + 0x50]
call fcn.00514420
mov eax, dword [esp + 0xf8]
test eax, eax
je 0x51ee2f
lea esi, [esp + 0xf8]
lea edi, [esp + 0x50]
jmp 0x51ee04
mov ecx, esi
mov edx, edi
call fcn.00514420
mov eax, dword [esp + 0xf8]
test eax, eax
je 0x51ee2f
imul ecx, dword [esp + 0x100], 0x68
cmp dword [eax + ecx + 0x58], 0
je 0x51edf0
lea eax, [eax + ecx + 0x58]
cmp dword [eax + 8], 0
je 0x51edf0
push dword [eax + 4]
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
jmp 0x51edf0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 0xc]
lea edi, [edi + eax + 2]
mov al, 0x13
mov dword [esp + 4], eax
xor esi, esi
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jmp 0x51ecf7
mov edi, dword [esp + 0xc]
lea edi, [edi + eax + 3]
jmp 0x51ec79
mov al, 6
xor esi, esi
mov dword [esp + 4], eax
jmp 0x51ee47
mov edi, dword [esp + 0x20]
mov cl, 0xd
mov bh, al
mov dword [esp + 4], ecx
cmp dword [esp + 0x50], 0
mov dword [esp + 0x14], ebx
jne 0x51ecd7
jmp 0x51ecef
movd eax, xmm0
pshufd xmm2, xmm0, 0x55
pshufd xmm1, xmm0, 0xee
pshufd xmm3, xmm0, 0xff
movd ebx, xmm2
mov ecx, eax
mov dword [esp + 4], eax
movd edi, xmm1
movd esi, xmm3
mov dword [esp + 0x14], eax
shrd ecx, ebx, 0x10
shr ebx, 0x10
jmp 0x51ecf7
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 4]
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
shld ecx, eax, 0x18
mov dword [esp + 4], eax
mov ah, cl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x51ecf7
mov byte [eax + 8], 0xe
jmp 0x51ed21
mov al, 0x13
mov edi, dword [esp + 0xc]
jmp 0x51eca5