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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x10c78
call fcn.00483550
mov eax, dword [0x4dc38c]
xor eax, esp
mov dword [esp + 0x10c74], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x40], 0xffffffff
push 0
xorps xmm0, xmm0
mov dword [esp + 0x18], edi
mov dword [esp + 0x48], 0
mov eax, dword [edi + 0x78]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x7c]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x20]
push eax
push 0x10000
lea eax, [esp + 0xc84]
movlpd qword [esp + 0x54], xmm0
push eax
push 0x28
lea eax, [esp + 0x4c]
mov dword [esp + 0x64], 1
push eax
push 0x900bb
push dword [edi + 0x50]
mov dword [esp + 0x74], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x411d37
nop dword [eax]
cmp byte [edi + 0x9d], 0
jne 0x411d37
mov eax, dword [esp + 0x1c]
lea esi, [esp + 0xc80]
xor dl, dl
mov dword [esp + 0xc], esi
add eax, 0xfffffff8
mov byte [esp + 8], dl
mov dword [esp + 0x18], eax
je 0x411cb4
nop
cmp byte [edi + 0x9d], 0
jne 0x411d37
push 0x800
lea eax, [esp + 0x47c]
push 0
push eax
call fcn.00486070
add esp, 0xc
lea eax, [esp + 0x78]
push 0x400
push 0
push eax
call fcn.00486070
movzx eax, word [esi + 0x38]
add esp, 0xc
push eax
lea eax, [esi + 0x3c]
push eax
lea eax, [esp + 0x480]
push eax
call fcn.00485af0
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x484]
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
push 0
push 0
push eax
lea eax, [esp + 0x84]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x48c]
push eax
push 0
push 0xfde9
call esi
mov ecx, dword [esp + 0xc]
lea esi, [edi + 0x60]
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x34]
shr eax, 4
and al, 1
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], al
mov eax, dword [ecx + 0x28]
cmp eax, 0x1000
ja 0x411b3c
je 0x411aff
cmp eax, 0x100
je 0x411b47
cmp eax, 0x200
jne 0x411c94
push dword [ecx + 0xc]
push dword [ecx + 8]
lea ecx, [edi + 0x54]
call fcn.0040eb20
mov dl, byte [esp + 0x10]
add esp, 8
cmp eax, 0xffffffff
jle 0x411b33
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x54]
mov byte [eax + ecx*8 + 0x14], 1
add dword [edi + 0x70], 0xffffffff
mov byte [edi + 0x9c], 1
adc dword [edi + 0x74], 0xffffffff
mov ecx, dword [esp + 0xc]
jmp 0x411c98
cmp eax, 0x2000
jne 0x411c94
xor edx, edx
lea ecx, [esp + 0x78]
mov dword [esp + 0x10], edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411b54
sub ecx, edi
je 0x411bce
nop
mov eax, dword [esi + 4]
lea edi, [esp + 0x78]
add edi, edx
cmp edi, eax
jae 0x411b95
mov ecx, dword [esi]
cmp ecx, edi
ja 0x411b95
sub edi, ecx
cmp eax, dword [esi + 8]
jne 0x411b87
push 1
mov ecx, esi
call fcn.00412320
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x411bb2
mov eax, dword [esi]
mov al, byte [edi + eax]
jmp 0x411bb0
cmp eax, dword [esi + 8]
jne 0x411ba7
push 1
mov ecx, esi
call fcn.00412320
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x411bb2
mov al, byte [edi]
mov byte [ecx], al
inc dword [esi + 4]
lea ecx, [esp + 0x78]
inc edx
lea edi, [ecx + 1]
mov dword [esp + 0x10], edx
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411bc1
sub ecx, edi
cmp edx, ecx
jb 0x411b60
mov eax, dword [esi + 4]
lea ecx, [esp + 8]
mov byte [esp + 8], 0
cmp ecx, eax
jae 0x411c0a
mov ecx, dword [esi]
lea edx, [esp + 8]
cmp ecx, edx
ja 0x411c0a
mov edi, edx
sub edi, ecx
cmp eax, dword [esi + 8]
jne 0x411bfa
push 1
mov ecx, esi
call fcn.00412320
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x411c22
mov eax, dword [esi]
mov al, byte [edi + eax]
mov byte [ecx], al
jmp 0x411c22
cmp eax, dword [esi + 8]
jne 0x411c18
push 1
mov ecx, esi
call fcn.00412320
mov eax, dword [esi + 4]
test eax, eax
je 0x411c22
mov byte [eax], 0
mov eax, dword [esp + 0xc]
inc dword [esi + 4]
mov esi, dword [esp + 0x14]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
push eax
push edi
lea ecx, [esi + 0x54]
call fcn.0040eb20
movups xmm0, xmmword [esp + 0x28]
add esp, 8
cmp eax, 0xffffffff
jle 0x411c57
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x54]
movups xmmword [eax + ecx*8 + 8], xmm0
jmp 0x411c78
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x60], edi
movups xmmword [esp + 0x68], xmm0
mov eax, dword [ecx + 0xc]
lea ecx, [esi + 0x54]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
push eax
call fcn.00411f40
mov ecx, dword [esp + 0xc]
mov edi, esi
mov dl, 1
mov byte [esp + 8], dl
add dword [edi + 0x70], 1
mov byte [edi + 0x9c], dl
adc dword [edi + 0x74], 0
jmp 0x411c98
mov dl, byte [esp + 8]
mov esi, dword [esp + 0x18]
mov eax, dword [ecx]
sub esi, eax
add ecx, eax
mov dword [esp + 0x18], esi
test esi, esi
mov dword [esp + 0xc], ecx
mov esi, ecx
jne 0x411a20
mov ecx, dword [esp + 0xc78]
mov eax, dword [esp + 0xc7c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov dword [edi + 0x78], ecx
mov dword [edi + 0x7c], eax
test dl, dl
je 0x411d06
mov al, byte [esp + 8]
mov edx, dword [edi + 0x58]
mov ecx, dword [edi + 0x54]
sub edx, ecx
mov byte [esp + 8], al
lea eax, [esp + 8]
push eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [edi + 0x58]
push eax
call fcn.00413090
add esp, 8
push 0
lea eax, [esp + 0x20]
push eax
push 0x10000
lea eax, [esp + 0xc84]
push eax
push 0x28
lea eax, [esp + 0x4c]
push eax
push 0x900bb
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4119f0
mov ecx, dword [esp + 0x10c7c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0048254c
mov esp, ebp
pop ebp
ret