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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a929b
mov eax, dword fs:[0]
push eax
mov eax, 0x10c9c
call fcn.00483550
mov eax, dword [0x4dc38c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10c8c], edi
push str.GetUSNJournal_n
call fcn.0042b8f0
mov eax, dword [edi + 0x78]
lea esi, [edi + 0x60]
mov dword [ebp - 0x10c58], eax
xorps xmm0, xmm0
mov eax, dword [edi + 0x7c]
add esp, 4
mov dword [ebp - 0x10c54], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x10c50], eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x10c4c], eax
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov dword [ebp - 0x10c9c], eax
lea eax, [ebp - 0x10c48]
movlpd qword [ebp - 0x10c60], xmm0
movlpd qword [ebp - 0x10ca4], xmm0
mov word [ebp - 0x10c98], 0
movups xmm0, xmmword [ebp - 0x10ca4]
mov byte [edi + 0x9c], 1
add edi, 0x54
push eax
mov ecx, edi
mov dword [ebp - 0x10c48], 5
mov dword [ebp - 0x10c44], 0x50000
movups xmmword [ebp - 0x10c40], xmm0
mov dword [ebp - 0x10c88], edi
call fcn.00411f40
mov eax, dword [ebp - 0x10c8c]
xorps xmm0, xmm0
mov byte [ebp - 0x30], 0
movups xmmword [ebp - 0x2f], xmm0
mov dword [ebp - 0x17], 0
add dword [eax + 0x70], 1
movq qword [ebp - 0x1f], xmm0
adc dword [eax + 0x74], 0
movsx eax, byte [eax]
push eax
lea eax, [ebp - 0x30]
mov word [ebp - 0x13], 0
push 0x4c8ea0
push eax
mov byte [ebp - 0x11], 0
call fcn.00403420
lea ecx, [ebp - 0x30]
add esp, 0xc
xor edx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x10c80], edx
mov dword [ebp - 0x10c84], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411440
sub ecx, dword [ebp - 0x10c84]
je 0x4114c8
nop
mov eax, dword [esi + 4]
lea edi, [ebp - 0x30]
add edi, edx
cmp edi, eax
jae 0x411486
mov ecx, dword [esi]
cmp ecx, edi
ja 0x411486
sub edi, ecx
cmp eax, dword [esi + 8]
jne 0x411478
push 1
mov ecx, esi
call fcn.00412320
mov edx, dword [ebp - 0x10c80]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
test ecx, ecx
je 0x4114a5
mov al, byte [eax + edi]
jmp 0x4114a3
cmp eax, dword [esi + 8]
jne 0x41149a
push 1
mov ecx, esi
call fcn.00412320
mov edx, dword [ebp - 0x10c80]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4114a5
mov al, byte [edi]
mov byte [ecx], al
inc dword [esi + 4]
lea ecx, [ebp - 0x30]
inc edx
lea edi, [ecx + 1]
mov dword [ebp - 0x10c80], edx
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4114b5
sub ecx, edi
cmp edx, ecx
jb 0x411450
mov edi, dword [ebp - 0x10c88]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x10c7c]
mov byte [ebp - 0x10c7c], 0
cmp ecx, eax
jae 0x41150f
mov edx, dword [esi]
cmp edx, ecx
ja 0x41150f
sub ecx, edx
mov dword [ebp - 0x10c84], ecx
cmp eax, dword [esi + 8]
jne 0x4114fe
push 1
mov ecx, esi
call fcn.00412320
mov ecx, dword [ebp - 0x10c84]
mov eax, dword [esi]
add eax, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x411527
mov al, byte [eax]
mov byte [ecx], al
jmp 0x411527
cmp eax, dword [esi + 8]
jne 0x41151d
push 1
mov ecx, esi
call fcn.00412320
mov eax, dword [esi + 4]
test eax, eax
je 0x411527
mov byte [eax], 0
inc dword [esi + 4]
xor eax, eax
mov dword [ebp - 0x10c64], 7
mov dword [ebp - 0x10c68], 0
mov word [ebp - 0x10c78], ax
push eax
lea eax, [ebp - 0x10c94]
mov dword [ebp - 4], 2
push eax
push 0x10000
lea eax, [ebp - 0x10c30]
push eax
push 0x18
lea eax, [ebp - 0x10c60]
push eax
mov eax, dword [ebp - 0x10c8c]
push 0x900b3
push dword [eax + 0x50]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4118df
nop word [eax + eax]
mov eax, dword [ebp - 0x10c94]
lea ecx, [ebp - 0x10c28]
add eax, 0xfffffff8
mov dword [ebp - 0x10c80], ecx
mov dword [ebp - 0x10c84], eax
je 0x41188d
mov byte [ebp - 0x10c7c], 0
nop dword [eax + eax]
push 0x800
lea eax, [ebp - 0xc30]
push 0
push eax
call fcn.00486070
push 0x400
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.00486070
mov edi, dword [ebp - 0x10c80]
movzx eax, word [edi + 0x38]
push eax
lea eax, [edi + 0x3c]
push eax
lea eax, [ebp - 0xc30]
push eax
call fcn.00485af0
add esp, 0x24
lea eax, [ebp - 0xc30]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push eax
lea eax, [ebp - 0x430]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xc30]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x430]
sub eax, dword [esi]
mov dword [ebp - 0x10c9c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10ca4], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x10ca0], eax
mov eax, dword [edi + 0x34]
lea edi, [ecx + 1]
shr eax, 4
and al, 1
mov byte [ebp - 0x10c98], 0
xor edx, edx
mov byte [ebp - 0x10c97], al
mov dword [ebp - 0x10c90], edx
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411687
sub ecx, edi
je 0x41171d
nop word [eax + eax]
mov eax, dword [esi + 4]
lea edi, [ebp - 0x430]
add edi, edx
cmp edi, eax
jae 0x4116d9
mov ecx, dword [esi]
cmp ecx, edi
ja 0x4116d9
sub edi, ecx
cmp eax, dword [esi + 8]
jne 0x4116cb
push 1
mov ecx, esi
call fcn.00412320
mov edx, dword [ebp - 0x10c90]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4116f8
mov eax, dword [esi]
mov al, byte [edi + eax]
jmp 0x4116f6
cmp eax, dword [esi + 8]
jne 0x4116ed
push 1
mov ecx, esi
call fcn.00412320
mov edx, dword [ebp - 0x10c90]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4116f8
mov al, byte [edi]
mov byte [ecx], al
inc dword [esi + 4]
lea ecx, [ebp - 0x430]
inc edx
lea edi, [ecx + 1]
mov dword [ebp - 0x10c90], edx
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411710
sub ecx, edi
cmp edx, ecx
jb 0x4116a0
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x10c7c]
cmp ecx, eax
jae 0x411758
mov ecx, dword [esi]
lea edx, [ebp - 0x10c7c]
cmp ecx, edx
ja 0x411758
mov edi, edx
sub edi, ecx
cmp eax, dword [esi + 8]
jne 0x411748
push 1
mov ecx, esi
call fcn.00412320
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x411770
mov eax, dword [esi]
mov al, byte [edi + eax]
mov byte [ecx], al
jmp 0x411770
cmp eax, dword [esi + 8]
jne 0x411766
push 1
mov ecx, esi
call fcn.00412320
mov eax, dword [esi + 4]
test eax, eax
je 0x411770
mov byte [eax], 0
mov ecx, dword [ebp - 0x10c80]
inc dword [esi + 4]
mov edi, dword [ebp - 0x10c88]
movups xmm0, xmmword [ebp - 0x10ca4]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x10c48], eax
mov eax, dword [ecx + 0xc]
lea ecx, [ebp - 0x10c48]
mov dword [ebp - 0x10c44], eax
mov eax, dword [edi + 4]
movups xmmword [ebp - 0x10c40], xmm0
cmp ecx, eax
jae 0x41180d
mov edx, dword [edi]
cmp edx, ecx
ja 0x41180d
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [ebp - 0x10c88]
sar edx, 2
mov edi, edx
shr edi, 0x1f
mov eax, dword [ecx + 4]
add edi, edx
cmp eax, dword [ecx + 8]
jne 0x4117df
push ecx
call fcn.00412380
mov ecx, dword [ebp - 0x10c88]
mov edx, dword [ecx + 4]
test edx, edx
je 0x411805
lea ecx, [edi + edi*2]
mov edi, dword [ebp - 0x10c88]
mov eax, dword [edi]
movups xmm0, xmmword [eax + ecx*8]
movups xmmword [edx], xmm0
movq xmm0, qword [eax + ecx*8 + 0x10]
movq qword [edx + 0x10], xmm0
jmp 0x411838
mov edi, dword [ebp - 0x10c88]
jmp 0x411838
cmp eax, dword [edi + 8]
jne 0x41181a
push ecx
mov ecx, edi
call fcn.00412380
mov eax, dword [edi + 4]
test eax, eax
je 0x411838
movups xmm0, xmmword [ebp - 0x10c48]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x10c38]
movq qword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0x10c80]
add dword [edi + 4], 0x18
mov edx, dword [ebp - 0x10c8c]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
cmp ecx, dword [edx + 0x7c]
jl 0x411860
jg 0x41185a
cmp eax, dword [edx + 0x78]
jbe 0x411860
mov dword [edx + 0x78], eax
mov dword [edx + 0x7c], ecx
mov ecx, dword [ebp - 0x10c80]
mov eax, dword [ecx]
add ecx, eax
sub dword [ebp - 0x10c84], eax
add dword [edx + 0x70], 1
mov dword [ebp - 0x10c80], ecx
adc dword [edx + 0x74], 0
cmp dword [ebp - 0x10c84], 0
ja 0x4115c0
jmp 0x411893
mov edx, dword [ebp - 0x10c8c]
mov eax, dword [ebp - 0x10c30]
mov dword [ebp - 0x10c60], eax
mov eax, dword [ebp - 0x10c2c]
push 0
mov dword [ebp - 0x10c5c], eax
lea eax, [ebp - 0x10c94]
push eax
push 0x10000
lea eax, [ebp - 0x10c30]
push eax
push 0x18
lea eax, [ebp - 0x10c60]
push eax
push 0x900b3
push dword [edx + 0x50]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x411590
mov esi, dword [ebp - 0x10c8c]
movsx eax, byte [esi]
push eax
push str.Sort_Disk__c_n
call fcn.0042b8f0
mov dl, byte [ebp - 0x10c7c]
mov eax, 0x2aaaaaab
mov esi, dword [esi + 0x58]
mov ecx, dword [edi]
mov byte [ebp - 0x10c7c], dl
lea edx, [ebp - 0x10c7c]
push edx
mov edx, esi
sub edx, ecx
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, esi
push eax
call fcn.00413090
add esp, 0x10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048254c
mov esp, ebp
pop ebp
ret