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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x2b0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, ecx
cmp edi, eax
jae 0x415874
mov byte [esi + 8], 0x13
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 0
mov dword [esi], 0x80000000
jmp 0x416286
add edx, eax
sub edi, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 8
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 0
je 0x416084
pxor xmm0, xmm0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x24], 0
xor ecx, ecx
mov dword [esp + 8], edx
mov dword [esp + 0x20], edi
nop dword [eax + eax]
movzx eax, byte [edx + ebx]
mov dword [esp + 0x1c], ebx
xor ebx, ebx
cmp ecx, 0x3f
jne 0x4158e7
cmp al, 2
jae 0x416086
mov dh, al
xor edi, edi
and dh, 0x7f
movzx ebx, dh
mov edx, esi
mov esi, 0
shld edi, ebx, cl
shl ebx, cl
test cl, 0x20
cmovne edi, ebx
cmovne ebx, esi
mov esi, edx
or dword [esp + 0x24], edi
or esi, ebx
test al, al
mov edi, dword [esp + 0x24]
jns 0x415935
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 8]
mov ah, al
add ecx, 7
inc ebx
cmp edi, ebx
jne 0x4158d0
jmp 0x41608e
mov ecx, esi
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x50], esi
or ecx, edi
mov edi, dword [esp + 0x14]
je 0x416262
mov eax, dword [esp + 0x1c]
lea ecx, [ebx - 1]
cmp ecx, eax
je 0x41628e
mov esi, dword [esp + 8]
mov dword [esp + 0x14], edi
lea edi, [ebx - 2]
mov ebx, 0
movzx ecx, byte [esi + eax + 1]
mov edx, ecx
and edx, 0x7f
test cl, cl
mov dword [esp + 0x2c], edx
js 0x41598f
mov edx, dword [esp + 0xc]
sub edi, eax
lea esi, [esi + eax + 2]
jmp 0x415a10
cmp edi, eax
je 0x41633e
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x2c]
movzx edx, byte [ecx + eax + 2]
movzx esi, si
mov dword [esp + 0x18], edx
and edx, 0x7f
shl edx, 7
or esi, edx
cmp byte [esp + 0x18], 0
mov edx, ecx
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x20]
lea edi, [esi - 3]
lea esi, [edx + eax + 3]
js 0x4159d3
mov edx, dword [esp + 0xc]
sub edi, eax
jmp 0x415a10
cmp edi, eax
je 0x416355
movzx ecx, byte [esi]
mov edx, dword [esp + 0xc]
cmp cx, 3
ja 0x416370
mov esi, dword [esp + 8]
mov edi, dword [esp + 0x20]
sub edi, eax
lea esi, [esi + eax + 4]
movzx eax, cx
mov ecx, dword [esp + 0x2c]
shl eax, 0xe
add edi, 0xfffffffc
movzx ecx, cx
or ecx, eax
mov dword [esp + 0x2c], ecx
cmp word [esp + 0x2c], 0
je 0x4162b0
test edi, edi
je 0x4162b4
movzx eax, byte [esi]
cmp al, 2
jae 0x4162bc
inc esi
dec edi
mov byte [esp + 0x2b], al
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
mov dword [esp + 0xac], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xb0], 0
movdqa xmmword [esp + 0x60], xmm0
mov dword [esp + 0x70], 0
test edi, edi
je 0x416210
movzx eax, byte [esi]
mov dword [esp + 0xc], ecx
lea edx, [edi - 1]
mov ecx, eax
and ecx, 0x7f
test al, al
lea eax, [esi + 1]
mov dword [esp + 0x18], ecx
jns 0x415b50
test edx, edx
je 0x41623a
movzx eax, byte [esi + 1]
mov edx, dword [esp + 0x18]
mov ecx, eax
movzx edx, dx
and ecx, 0x7f
shl ecx, 7
or edx, ecx
test al, al
lea eax, [esi + 2]
mov ecx, edi
mov dword [esp + 0x18], edx
lea edx, [edi - 2]
jns 0x415b50
test edx, edx
je 0x41623a
movzx eax, byte [eax]
cmp ax, 3
ja 0x4162ed
mov ecx, dword [esp + 0x18]
movzx eax, ax
add edi, 0xfffffffd
add esi, 3
shl eax, 0xe
mov edx, edi
movzx ecx, cx
or ecx, eax
mov eax, esi
mov dword [esp + 0x18], ecx
nop word cs:[eax + eax]
nop dword [eax]
mov edi, dword [esp + 0x14]
cmp word [esp + 0x18], 0
mov dword [esp + 0x14], edi
je 0x415d9a
test edx, edx
je 0x416216
movzx ebx, byte [eax]
lea edi, [edx - 1]
mov ecx, edx
mov edx, eax
lea esi, [edx + 1]
mov eax, ebx
and eax, 0x7f
test bl, bl
jns 0x415be0
test edi, edi
mov dword [esp + 0x1c], ecx
je 0x4162cb
movzx ebx, byte [edx + 1]
mov esi, dword [esp + 0x1c]
movzx eax, ax
mov ecx, edx
mov edi, ebx
and edi, 0x7f
shl edi, 7
or eax, edi
lea edi, [esi - 2]
test bl, bl
lea esi, [edx + 2]
jns 0x415be0
test edi, edi
je 0x41634c
movzx edi, byte [esi]
cmp di, 3
ja 0x4162ed
mov ecx, dword [esp + 0x1c]
movzx edi, di
add edx, 3
movzx eax, ax
shl edi, 0xe
mov esi, edx
or eax, edi
add ecx, 0xfffffffd
mov edi, ecx
nop dword [eax]
cmp ax, 0x21
mov dword [esp + 8], esi
mov dword [esp + 0x20], edi
je 0x415c2b
movzx ebx, ax
test ebx, ebx
je 0x4162a7
movzx eax, word [esp + 0x18]
mov edi, dword [esp + 0x30]
shl ebx, 0x10
mov ecx, 0xffffffff
xor esi, esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], 0
and edi, ecx
or ebx, eax
xor ecx, ecx
mov dword [esp + 0x18], ebx
jmp 0x415d2c
test edi, edi
je 0x4162ab
xor ebx, ebx
xor eax, eax
mov dword [esp + 0xc], 0
xor ecx, ecx
nop word cs:[eax + eax]
nop dword [eax + eax]
mov dword [esp + 0x1c], eax
mov ah, byte [esi + ebx]
cmp ecx, 0x3f
jne 0x415c6c
movzx edi, ah
cmp edi, 0x7f
je 0x415c6c
test edi, edi
jne 0x416207
mov dl, ah
mov esi, 0
and dl, 0x7f
movzx edi, dl
xor edx, edx
shld edx, edi, cl
shl edi, cl
test cl, 0x20
cmovne edx, edi
cmovne edi, esi
or dword [esp + 0xc], edx
mov edx, eax
mov eax, dword [esp + 0x1c]
or eax, edi
test dh, dh
jns 0x415cae
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 8]
inc ebx
add ecx, 7
cmp edi, ebx
jne 0x415c50
jmp 0x4161e5
add ecx, 7
mov dword [esp + 0x1c], eax
mov eax, edx
mov edi, 0xffffffff
cmp ecx, 0x40
setl dl
and ah, 0x40
shl edi, cl
shr ah, 6
test cl, 0x20
mov ecx, 0xffffffff
cmovne ecx, edi
cmovne edi, esi
test dl, ah
movzx eax, word [esp + 0x18]
mov edx, 0xffffffff
cmove edi, esi
cmove ecx, esi
mov esi, dword [esp + 0xc]
or eax, 0x210000
or esi, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
or ecx, edi
lea eax, [eax + ebx + 1]
mov edi, dword [esp + 0x30]
not ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 8], eax
add dword [esp + 0x20], ebx
shrd ecx, esi, 0x10
shr esi, 0x10
mov eax, dword [esp + 0x1c]
and edi, edx
mov al, ah
mov dword [esp + 0xc], eax
movzx ebx, byte [esp + 0xc]
mov eax, ecx
mov edx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], edi
shl eax, 0x10
shld esi, edx, 0x10
mov dword [esp + 0x34], edx
mov dword [esp + 0xd4], esi
shl ebx, 8
or ebx, eax
movzx eax, byte [esp + 0x1c]
or eax, ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd8], ebx
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.0045cd40
add esp, 8
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x20]
jmp 0x415ac1
test edx, edx
je 0x416216
mov dword [esp + 0x18], ebx
movzx ebx, byte [eax]
lea ecx, [edx - 1]
mov esi, edx
mov edx, eax
mov eax, ebx
and eax, 0x7f
test bl, bl
lea ebx, [edx + 1]
mov dword [esp + 8], ebx
js 0x415dca
mov esi, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
jmp 0x415e47
test ecx, ecx
mov dword [esp + 0x1c], edx
je 0x4163e1
mov edx, dword [esp + 0x1c]
mov ebx, esi
movzx eax, ax
lea esi, [ebx - 2]
movzx ecx, byte [edx + 1]
mov edi, ecx
and edi, 0x7f
shl edi, 7
or eax, edi
test cl, cl
lea ecx, [edx + 2]
mov dword [esp + 8], ecx
js 0x415e09
mov dword [esp + 0x20], esi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
jmp 0x415e47
test esi, esi
mov esi, dword [esp + 0x18]
je 0x4163ee
mov edi, dword [esp + 8]
movzx edi, byte [edi]
cmp di, 3
ja 0x4162ed
movzx edi, di
mov ecx, dword [esp + 0x1c]
movzx eax, ax
add ebx, 0xfffffffd
shl edi, 0xe
mov dword [esp + 0x20], ebx
or eax, edi
mov edi, dword [esp + 0x14]
add ecx, 3
mov dword [esp + 8], ecx
test ax, ax
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0xc]
jne 0x41637d
lea ecx, [esp + 0x78]
movq xmm1, qword [esp + 0x60]
movdqu xmm0, xmmword [esp + 0x68]
movsd xmm3, qword [ecx + 8]
movsd xmm4, qword [ecx + 0x10]
movsd xmm2, qword [ecx]
movd eax, xmm1
movsd qword [esp + 0x110], xmm3
movsd xmm3, qword [ecx + 0x18]
movsd qword [esp + 0x118], xmm4
movsd xmm4, qword [ecx + 0x20]
cmp eax, 2
movsd qword [esp + 0x108], xmm2
movsd qword [esp + 0x120], xmm3
movsd xmm3, qword [ecx + 0x28]
movsd qword [esp + 0x128], xmm4
movsd xmm4, qword [ecx + 0x30]
movsd qword [esp + 0x130], xmm3
movsd xmm3, qword [ecx + 0x38]
movsd qword [esp + 0x138], xmm4
movsd qword [esp + 0x140], xmm3
je 0x416384
movsd xmm3, qword [esp + 0x138]
lea eax, [esp + 0x160]
movsd xmm4, qword [esp + 0x130]
movq xmm2, qword [esp + 0x140]
movsd qword [eax + 0x30], xmm3
movsd xmm3, qword [esp + 0x128]
movsd qword [eax + 0x28], xmm4
movsd xmm4, qword [esp + 0x120]
movq qword [eax + 0x38], xmm2
movsd qword [eax + 0x20], xmm3
movsd xmm3, qword [esp + 0x118]
movsd qword [eax + 0x18], xmm4
movsd xmm4, qword [esp + 0x108]
movsd qword [eax + 0x10], xmm3
movq xmm3, qword [esp + 0x110]
movsd qword [eax], xmm4
movq qword [eax + 8], xmm3
movq qword [esp + 0x148], xmm1
movdqu xmmword [esp + 0x150], xmm0
movzx eax, byte [esp + 0x2b]
lea ecx, [esp + 0x148]
push ecx
push eax
push dword [esp + 0x34]
push dword [esp + 0x30]
push dword [esp + 0x60]
lea eax, [esp + 0x74]
push eax
call fcn.0045ccd0
add esp, 0x18
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
movq xmm0, qword [esp + 0x60]
lea esi, [esp + 0x78]
mov eax, ecx
mov dword [esp + 0x1c], ecx
movd ebx, xmm0
shld eax, edx, 0x10
mov dword [esp + 0x34], eax
mov eax, ecx
mov ecx, 0x14
shr eax, 0x10
cmp ebx, 3
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x258]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
je 0x4163bd
mov dword [esp + 0xc], edx
lea edx, [esp + 0x208]
mov ecx, 0x14
mov esi, eax
cmp ebx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
je 0x416262
mov eax, dword [esp + 0xc]
movq qword [esp + 0x1a0], xmm0
mov ecx, 0x14
lea edi, [esp + 0x1b8]
mov esi, edx
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1ac], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1b0], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1b4], eax
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1a0]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0045beb0
add esp, 8
mov esi, dword [esp + 0x10]
test al, al
pxor xmm0, xmm0
jne 0x4163d8
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 8]
test edi, edi
jne 0x4158b2
jmp 0x416096
jmp 0x416096
mov esi, dword [esp + 0x10]
mov cl, 6
jmp 0x4160a0
mov esi, dword [esp + 0x10]
add edx, edi
mov ch, ah
mov dword [esp + 8], edx
xor ebx, ebx
mov cl, 0x13
mov dh, ch
movzx eax, dh
mov edx, dword [esp + 0x34]
movzx ecx, cl
shl eax, 8
or ecx, eax
shld edi, edx, 0x10
shl edx, 0x10
or ecx, edx
mov dword [esi + 8], ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ecx
mov edi, dword [esp + 0x40]
mov dword [esi], 0x80000000
mov esi, dword [esp + 0x3c]
test edi, edi
je 0x416105
lea ebx, [esi + 8]
jmp 0x4160e6
add ebx, 0x68
dec edi
je 0x416105
cmp dword [ebx - 8], 0
je 0x4160e0
mov eax, dword [ebx - 4]
test eax, eax
je 0x4160e0
shl eax, 4
push 8
push eax
push dword [ebx]
call fcn.00402ec0
add esp, 0xc
jmp 0x4160e0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x41611c
imul eax, eax, 0x68
push 8
push eax
push esi
call fcn.00402ec0
add esp, 0xc
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x416153
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], ecx
mov ecx, 1
mov dword [esp + 0x7c], edx
jmp 0x416157
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x80], eax
lea ecx, [esp + 0x148]
lea edx, [esp + 0x60]
call fcn.0040a640
mov eax, dword [esp + 0x148]
test eax, eax
je 0x416286
lea esi, [esp + 0x148]
lea edi, [esp + 0x60]
jmp 0x4161b8
mov ecx, esi
mov edx, edi
call fcn.0040a640
mov eax, dword [esp + 0x148]
test eax, eax
je 0x416286
imul ecx, dword [esp + 0x150], 0x68
cmp dword [eax + ecx + 0x58], 0
je 0x4161a0
lea eax, [eax + ecx + 0x58]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4161a0
shl ecx, 4
push 8
push ecx
push dword [eax + 8]
call fcn.00402ec0
add esp, 0xc
jmp 0x4161a0
add esi, edi
xor ebx, ebx
mov cl, 0x13
mov dword [esp + 8], esi
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x60], 0
jne 0x41630a
jmp 0x4160a0
xor ebx, ebx
mov cl, 7
jmp 0x4162f7
xor ebx, ebx
mov dh, cl
jmp 0x4161e9
mov esi, eax
mov eax, dword [esp + 0xc]
xor ebx, ebx
mov cl, 0x13
mov dword [esp + 8], esi
mov esi, dword [esp + 0x10]
mov dh, al
cmp dword [esp + 0x60], 0
jne 0x41630a
jmp 0x4160a0
xor ebx, ebx
mov cl, 0x13
mov esi, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 8], esi
mov dh, al
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x60], 0
jne 0x41630a
jmp 0x4160a0
movq xmm0, qword [esp + 0x48]
mov eax, dword [esp + 0x10]
movq xmm2, qword [esp + 0x38]
movq xmm1, qword [esp + 0x40]
movq qword [eax + 0x10], xmm0
movq qword [eax + 8], xmm1
movq qword [eax], xmm2
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x10]
xor ebx, ebx
lea ecx, [ecx + eax + 1]
mov dword [esp + 8], ecx
mov cl, 0x13
jmp 0x4160a0
mov cl, 9
jmp 0x4162f1
jmp 0x4161e7
mov cl, 8
jmp 0x4162be
mov cl, 0x13
mov dword [esp + 8], esi
jmp 0x4162be
mov cl, 0xa
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
jmp 0x4160a0
mov eax, dword [esp + 0xc]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov cl, 0x13
mov dh, al
cmp dword [esp + 0x60], 0
jne 0x41630a
jmp 0x4160a0
xor ebx, ebx
mov cl, 6
mov eax, dword [esp + 0xc]
mov dh, al
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x60], 0
je 0x4160a0
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4160a0
shl eax, 4
push 8
push eax
push dword [esp + 0x70]
mov dword [esp + 0x18], edx
mov byte [esp + 0x30], cl
call fcn.00402ec0
movzx ecx, byte [esp + 0x30]
mov edx, dword [esp + 0x18]
add esp, 0xc
jmp 0x4160a0
mov ecx, dword [esp + 8]
lea ecx, [ecx + eax + 2]
mov dword [esp + 8], ecx
jmp 0x41635d
xor ebx, ebx
mov cl, 0x13
jmp 0x416240
lea edx, [edx + eax + 3]
mov dword [esp + 8], edx
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
mov cl, 0x13
jmp 0x4160a0
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
jmp 0x41608a
mov cl, 0xd
jmp 0x416220
movd edx, xmm0
pshufd xmm2, xmm0, 0x55
mov esi, dword [esp + 0x10]
pshufd xmm1, xmm0, 0xee
pshufd xmm3, xmm0, 0xff
movd edi, xmm2
mov eax, edx
movd dword [esp + 8], xmm1
movd ebx, xmm3
mov ecx, edx
shrd eax, edi, 0x10
shr edi, 0x10
mov dword [esp + 0x34], eax
jmp 0x4160a0
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, edx
mov dword [esp + 8], eax
jmp 0x4160a0
mov byte [esi + 8], 0xe
jmp 0x4160c8
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
jmp 0x4162db
mov eax, dword [esp + 0xc]
xor ebx, ebx
mov cl, 0x13
mov dh, al
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x60], 0
jne 0x41630a
jmp 0x4160a0