Function at 0x100655b2
Capabilities:
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0x4a4
push ebx
push esi
push edi
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 0x70]
mov eax, ebx
and al, 4
neg al
sbb al, al
and dword [ebp + 0x50], 0
push 0x20f970
lea ecx, [ebp + 0x4c]
and eax, 0x2a
mov byte [ebp + 0x3b], al
mov al, bl
and al, 0x40
mov byte [ebp + 0x3a], al
mov eax, ebx
and eax, 0x100
mov dword [ebp + 0x1c], eax
mov eax, ebx
and eax, 0x200
mov dword [ebp + 0x24], eax
mov eax, ebx
shr eax, 0xb
and eax, 1
mov dword [ebp + 0x30], eax
call fcn.10045fcc
mov esi, dword [ebp + 0x64]
mov eax, dword [esi]
xor edi, edi
mov di, word [eax]
cmp di, 0x7a
ja 0x1006562f
cmp di, 0x61
jb 0x1006562f
add edi, 0xffe0
mov dword [ebp + 0x44], ebx
and dword [ebp + 0x44], 0x80
jne 0x10065647
push 0x12c
mov ecx, esi
call fcn.10046168
mov eax, dword [esi]
and word [eax], 0
mov ecx, dword [ebp + 0x4c]
and ebx, 0x28
sub bl, 0x28
add ecx, 0x200010
neg bl
sbb ebx, ebx
and ebx, 0xfffffffd
add ebx, 4
cmp dword [ebp + 0x6c], 0
mov eax, ebx
lea ebx, [ecx + 0xc000]
mov dword [ebp - 8], ebx
jg 0x10065691
test di, di
jne 0x10065691
push 0x3960
push 0
push ebx
call fcn.100b40f0
mov dword [ebx], 0xfffffffe
jmp 0x100656a3
movzx ecx, di
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp + 0x4c]
push ebx
call fcn.10055460
and dword [ebp + 0x3c], 0
and dword [ebp + 0x18], 0
add esp, 0xc
lea ecx, [ebp + 0x40]
call fcn.10046123
test byte [ebp + 0x70], 8
je 0x100657ef
cmp dword [ebp + 0x68], 0x7fff
jg 0x100657f6
test di, di
mov dword [ebp + 0x3c], 1
mov dword [ebp + 0x18], edi
je 0x100656e8
lea eax, [ebp + 0x40]
push eax
push edi
call fcn.10043966
pop ecx
pop ecx
xor eax, eax
movzx ecx, di
movsx edx, ax
imul edx, edx, 0x220
cmp dword [edx + ebx + 0x10], ecx
je 0x10065703
inc eax
cmp ax, 0x1a
jl 0x100656ed
cmp ax, 0x1a
push 0xffffffffffffffb3
pop edx
mov dword [ebp + 0x6c], edx
mov dword [ebp + 0x68], edx
jl 0x10065717
or esi, 0xffffffff
jmp 0x10065763
movsx eax, ax
imul eax, eax, 0x220
add eax, ebx
mov ecx, dword [eax + 4]
test ecx, ecx
jl 0x10065731
mov edx, dword [eax]
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x6c], edx
cmp dword [ebp + 0x44], 0
je 0x1006577d
mov ecx, dword [esi]
mov esi, dword [ebp + 0x68]
mov dword [ecx], esi
push 4
pop esi
add ecx, esi
mov dword [ecx], edx
mov edx, dword [eax + 8]
add ecx, esi
mov dword [ecx], edx
mov edx, dword [eax + 0xc]
add ecx, esi
mov dword [ecx], edx
mov edx, dword [eax + 0x10]
add ecx, esi
mov dword [ecx], edx
mov eax, dword [eax + 0x14]
push 3
mov dword [ecx + 4], eax
pop esi
lea ecx, [ebp + 0x40]
call fcn.1003f96c
lea ecx, [ebp + 0x4c]
call fcn.1003f96c
push 0x100e3d7c
jmp 0x10065d05
test byte [ebp + 0x70], 0x20
je 0x100657de
push dword [eax + 0x14]
mov ecx, dword [ebp + 0x64]
push dword [eax + 0x10]
mov esi, dword [ecx]
push dword [eax + 0xc]
lea ecx, [esi + 0xc8]
push 0xffffffffffffffff
push ecx
push dword [eax + 8]
call fcn.100438ac
add esp, 0xc
push eax
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push str._d__d__s__d__c:__d
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea ecx, [ebp + 0x40]
call fcn.1003f96c
lea ecx, [ebp + 0x4c]
call fcn.1003f96c
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 3
pop eax
jmp 0x10066398
cmp dword [ebp + 0x68], 0
jge 0x100657ef
and dword [ebp + 0x68], 0
mov dword [ebp + 0x3c], 0x11
cmp dword [ebp + 0x68], 0x7fff
jbe 0x10065800
mov eax, dword [ebp + 0x68]
mov dword [ebp + 0x44], eax
jmp 0x1006581b
push dword [ebp + 0x68]
lea eax, [ebp - 0x190]
push str..PhysicalDrive_d
push eax
mov dword [ebp + 0x44], eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor ebx, ebx
push ebx
push 0x22000000
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 0x44]
lea ecx, [ebp + 0x54]
mov dword [ebp + 0x54], ebx
call fcn.10005b9d
cmp dword [ebp + 0x54], ebx
jne 0x1006587a
test byte [ebp + 0x3c], 0x10
je 0x10065856
inc dword [ebp + 0x68]
cmp dword [ebp + 0x68], 0x3e80
jl 0x10065b5c
lea ecx, [ebp + 0x54]
call fcn.10002d56
lea ecx, [ebp + 0x40]
call fcn.1003f96c
lea ecx, [ebp + 0x4c]
call fcn.1003f96c
mov eax, 0x100e3d7c
cmp eax, ebx
jmp 0x1006638c
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x28
stosd dword es:[edi], eax
pop eax
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc8]
push eax
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0x2d1400
push dword [ebp + 0x54]
mov dword [ebp - 0x28], ebx
mov edi, 0xfffffc18
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100658be
movzx edi, byte [ebp - 0xc0]
jmp 0x100658c5
mov byte [ebp - 0xc0], 0x85
push 0x200
push dword [ebp + 0x54]
call fcn.1004342a
cmp byte [0x100e2e70], 0
pop ecx
mov esi, eax
pop ecx
mov dword [ebp + 0x20], esi
je 0x10065902
movzx eax, word [ebp + 0x18]
push edi
push eax
push dword [ebp + 0x44]
push 0x3a7b
push str.DBG__d:_disk__s_Drv:_0x_X__DT:_d_r_n
push 0x100e3108
call fcn.10011029
add esp, 0x18
lea eax, [ebp + 0x34]
push eax
push dword [ebp + 0x4c]
mov dword [ebp + 0x34], ebx
push dword [ebp + 0x54]
call fcn.100437ab
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x10065856
mov ebx, dword [edi]
mov eax, dword [ebp + 0x4c]
add eax, 0x200010
cmp ebx, 1
sete byte [ebp + 0x5b]
and dword [ebp + 4], 0
cmp byte [ebp + 0x5b], 0
lea ecx, [eax + esi*2]
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ecx
je 0x10065961
mov edx, dword [edi + 0x28]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push esi
push edx
push eax
lea eax, [ebp + 0x54]
push eax
mov dword [ebp + 4], edx
call fcn.1004af4c
add esp, 0x24
add edi, 0x30
test ebx, ebx
jne 0x100659a2
cmp dword [ebp + 0x34], 4
jne 0x100659a2
mov al, byte [ebp + 0x7c]
cmp al, byte [edi + 0x20]
jne 0x100659a2
cmp byte [edi + 0xb0], bl
jne 0x100659a2
cmp byte [edi + 0x140], bl
jne 0x100659a2
cmp byte [edi + 0x1d0], bl
jne 0x100659a2
push dword [ebp + 0x54]
push ebx
call fcn.100480aa
cmp eax, 7
pop ecx
pop ecx
jne 0x1006636d
or dword [ebp + 0x48], 0xffffffff
xor esi, esi
cmp dword [ebp + 0x34], esi
mov byte [ebp + 0x5a], 0xff
mov dword [ebp - 0xc], esi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x44], esi
jle 0x10065ab7
lea ebx, [edi + 0x20]
cmp byte [ebp + 0x5b], 0
jne 0x100659de
cmp byte [ebx], 0x42
je 0x10065a5a
jmp 0x10065a88
push 0x10
push 0x100cdabc
push ebx
call fcn.1003fa82
add esp, 0xc
test eax, eax
jne 0x10065a15
mov eax, dword [ebp + 0x20]
mov esi, dword [ebx - 0x18]
mov ecx, dword [ebx - 0x14]
cdq
add esi, eax
adc ecx, edx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx - 0x10]
sub ecx, eax
mov eax, dword [ebx - 0xc]
sbb eax, edx
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x2c], eax
jmp 0x10065a43
push 0x10
push 0x100cdacc
push ebx
call fcn.1003fa82
add esp, 0xc
test eax, eax
jne 0x10065a40
mov eax, dword [ebp + 0x20]
cdq
push edx
push eax
push dword [ebx - 0x14]
push dword [ebx - 0x18]
call fcn.100b4150
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
mov ecx, dword [ebp + 0x28]
mov eax, esi
or eax, dword [ebp - 0xc]
je 0x10065a88
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
je 0x10065a88
mov eax, dword [ebp + 0x2c]
mov dword [edi], ecx
mov dword [edi + 4], eax
push 0
push dword [ebp + 0x14]
xor eax, eax
mov al, byte [ebp + 0x5b]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push esi
and eax, 1
or eax, dword [ebp + 0x20]
push eax
push edi
push dword [ebp + 0x54]
call fcn.1004b33e
add esp, 0x20
cmp eax, 0xffffff00
mov dword [ebp + 0xc], eax
jg 0x10065a9f
inc dword [ebp + 0x44]
mov eax, dword [ebp + 0x44]
add ebx, 0x90
cmp eax, dword [ebp + 0x34]
jl 0x100659ca
jmp 0x10065ab7
mov esi, dword [ebp + 0xc]
mov al, byte [ebp + 8]
or byte [ebp + 0x5b], 0x10
test esi, esi
mov byte [ebp + 0x5a], al
jle 0x10065ce3
mov dword [ebp + 0x34], esi
cmp byte [ebp + 0x5a], 0
lea eax, [edi + 0x100000]
movzx ecx, word [eax]
lea eax, [eax + ecx*2]
mov dword [ebp + 0xc], eax
jl 0x10065b39
cmp word [ebp + 0x18], 0
je 0x10065b39
lea ecx, [ebp]
call fcn.10046123
xor ebx, ebx
cmp dword [ebp + 0x34], ebx
jle 0x10065b10
lea esi, [edi + 0x30]
push 0
lea eax, [ebp]
push eax
push esi
call fcn.10065259
add esp, 0xc
push dword [ebp + 0x40]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10065b1d
inc ebx
add esi, 0x90
cmp ebx, dword [ebp + 0x34]
jl 0x10065ae5
mov ebx, dword [ebp + 0x6c]
lea ecx, [ebp]
call fcn.1003f96c
jmp 0x10065b3c
lea eax, [ebx + ebx*8]
shl eax, 4
lea ecx, [eax + edi]
movzx eax, word [ebp + 0x18]
mov ebx, dword [ecx + 0x18]
cdq
mov dword [ebp + 0x6c], ebx
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], edx
jmp 0x10065b13
mov ebx, dword [ebp + 0x6c]
test byte [ebp + 0x3c], 0x10
je 0x10065b69
cmp byte [ebp + 0x5a], 0
jl 0x10065b4c
test ebx, ebx
jge 0x10065b69
inc dword [ebp + 0x68]
cmp dword [ebp + 0x68], 0x3e80
jge 0x1006636d
lea ecx, [ebp + 0x54]
call fcn.10002d56
jmp 0x10065800
test byte [ebp + 0x70], 2
je 0x10065b83
test byte [ebp + 0x5b], 1
je 0x10065b83
test ebx, ebx
jle 0x10065b83
cmp byte [ebp + 0x5a], 0
jl 0x10065b83
and dword [ebp + 0x70], 0xfffffffd
mov eax, dword [ebp + 0x70]
and eax, 2
mov dword [ebp + 0x14], eax
je 0x10065bd1
cmp byte [ebp + 0x5b], 0
jne 0x10065ba8
cmp ebx, 4
lea eax, [ebx - 1]
jle 0x10065ba3
lea eax, [ebx*4 - 0x10]
mov dword [ebp + 0x48], eax
jmp 0x10065bc1
test byte [ebp + 0x5b], 0x10
jne 0x10065bb5
cmp word [ebp + 0x24], 0
je 0x10065bbb
lea eax, [ebx - 1]
mov dword [ebp + 0x48], eax
cmp byte [ebp + 0x5b], 1
je 0x10065bd1
test ebx, ebx
jle 0x10065bd5
mov eax, dword [ebp + 0x48]
cmp eax, dword [ebp + 0x34]
jae 0x1006636d
test ebx, ebx
jg 0x10065bdd
mov ebx, 0xff800000
mov dword [ebp + 0x6c], ebx
cmp dword [ebp + 0x14], 0
je 0x10065d12
cmp byte [ebp + 0x5b], 0
je 0x10065bfb
cmp byte [ebp + 0x5a], 0
jl 0x10065bfb
test ebx, ebx
jg 0x10065cbc
test byte [ebp + 0x5b], 1
je 0x10065d12
cmp byte [ebp + 0x5a], 0
jge 0x10065d12
mov eax, dword [ebp + 0x6c]
test eax, eax
lea ebx, [eax - 1]
jle 0x1006636d
cmp eax, dword [ebp + 4]
jg 0x1006636d
mov esi, dword [ebp - 4]
push 1
push dword [ebp + 0x20]
shl ebx, 7
push dword [ebp + 0x34]
add ebx, esi
push edi
push ebx
call fcn.1004ae23
add esp, 0x14
test eax, eax
mov dword [ebp + 0x48], eax
jge 0x10065cbc
and dword [ebp + 0x48], 0
push 0x10
lea eax, [edi + 0x20]
push ebx
push eax
call fcn.100144ff
push 0x10
lea eax, [ebx + 0x10]
push eax
lea eax, [edi + 0x30]
push eax
call fcn.100144ff
mov eax, dword [ebx + 0x30]
mov dword [edi + 0x40], eax
mov eax, dword [ebx + 0x34]
add esp, 0x18
mov dword [edi + 0x44], eax
push dword [esi + 0x24]
mov eax, dword [ebp + 0x20]
push dword [esi + 0x20]
cdq
mov ebx, eax
push edx
push ebx
mov dword [ebp - 0xc], edx
call fcn.100b4200
push dword [ebp - 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x2c]
sbb ecx, dword [esi + 0x24]
add eax, 1
push ebx
adc ecx, 0
push ecx
push eax
call fcn.100b4200
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x6c]
neg eax
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x44], eax
lea eax, [eax + eax*8]
shl eax, 4
add eax, edi
movzx ecx, byte [eax + 0x20]
movsx esi, word [eax + 0x18]
mov dword [ebp + 0x3c], ecx
mov dword [ebp + 8], esi
cmp word [ebp + 0x24], 0
je 0x10065e5c
lea ecx, [ebp + 0x54]
call fcn.10002d56
lea ecx, [ebp + 0x40]
call fcn.1003f96c
lea ecx, [ebp + 0x4c]
call fcn.1003f96c
mov eax, 0x100e3d7c
test eax, eax
je 0x10065d0b
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x10066398
xor ebx, ebx
cmp dword [ebp + 0x34], ebx
jle 0x10065e21
lea eax, [edi + 0x18]
mov dword [ebp + 0x2c], eax
cmp dword [ebp + 0x48], 0
mov ecx, dword [ebp + 0x2c]
movzx eax, byte [ecx + 8]
movsx esi, word [ecx]
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], esi
jge 0x10065cbc
cmp dword [ebp + 0x6c], 0
jle 0x10065d4c
cmp dword [ebp + 0x6c], esi
je 0x10065cd8
jmp 0x10065e10
cmp byte [ebp + 0x5b], 0
jne 0x10065dd9
cmp dword [ebp + 0x6c], esi
je 0x10065d77
test eax, eax
jne 0x10065d77
cmp ebx, 4
jl 0x10065d77
mov eax, ebx
push 4
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x10065e10
mov eax, dword [ebp + 0x3c]
cmp eax, 5
je 0x10065d85
cmp eax, 0xf
je 0x10065d85
xor cl, cl
jmp 0x10065d87
mov cl, 1
cmp dword [ebp + 0x6c], esi
je 0x10065d95
test cl, cl
je 0x10065d95
cmp ebx, 4
jge 0x10065e10
test eax, eax
jne 0x10065db5
cmp ebx, 3
jg 0x10065da3
lea eax, [ebx + 1]
jmp 0x10065dad
mov eax, ebx
cdq
push 4
pop ecx
idiv ecx
add eax, ecx
push eax
push str.___2d
jmp 0x10065dee
test cl, cl
je 0x10065dc4
lea eax, [ebx + 1]
push eax
push 0x100d0890
jmp 0x10065dee
test esi, esi
jg 0x10065de8
cmp ebx, 3
jle 0x10065ddd
mov eax, ebx
cdq
push 4
pop ecx
idiv ecx
add eax, ecx
jmp 0x10065de0
test esi, esi
jg 0x10065de8
lea eax, [ebx + 1]
push eax
push str.__2d
jmp 0x10065dee
push esi
push str.__3d
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp + 0x64]
add esp, 0xc
lea eax, [ebp - 0x190]
push eax
call fcn.1004618f
inc dword [ebp + 0x50]
add dword [ebp + 0x2c], 0x90
inc ebx
cmp ebx, dword [ebp + 0x34]
jl 0x10065d23
cmp word [ebp + 0x24], 0
je 0x10066362
lea ecx, [ebp + 0x54]
call fcn.10002d56
lea ecx, [ebp + 0x40]
call fcn.1003f96c
lea ecx, [ebp + 0x4c]
call fcn.1003f96c
mov eax, 0x100e3d7c
test eax, eax
je 0x10065e54
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x10066398
mov ebx, dword [ebp + 0x64]
push 0x12c
mov ecx, ebx
call fcn.10046168
cmp dword [ebp + 0x3c], 5
je 0x10065e7b
cmp dword [ebp + 0x3c], 0xf
je 0x10065e7b
xor al, al
jmp 0x10065e7d
mov al, 1
cmp byte [ebp + 0x5b], 0
je 0x10065e8a
cmp word [ebp + 0x30], 0
jmp 0x10065ec0
xor ecx, ecx
cmp dword [ebp + 0x3c], ecx
jne 0x10065ea3
cmp word [ebp + 0x30], cx
mov eax, 0x100d0868
jne 0x10065eb7
mov eax, str.___2ld
jmp 0x10065eb7
test al, al
je 0x10065ebc
cmp word [ebp + 0x30], cx
mov eax, 0x100d084c
jne 0x10065eb7
mov eax, 0x100d083c
push dword [ebp + 0x6c]
jmp 0x10065ecd
cmp word [ebp + 0x30], cx
mov eax, 0x100c7bc8
jne 0x10065ecc
mov eax, 0x100d082c
push esi
mov ebx, dword [ebx]
push eax
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
or dword [ebp + 0x28], 0xffffffff
or dword [ebp + 0x2c], 0xffffffff
xor esi, esi
add esp, 0xc
cmp byte [ebp + 0x3a], 0
mov dword [ebp + 0x50], eax
mov dword [ebp - 0xa0], esi
je 0x10065f77
mov eax, dword [ebp + 0x44]
lea eax, [eax + eax*8]
shl eax, 4
lea ebx, [eax + edi]
cmp dword [ebx + 0x14], esi
jg 0x10065f18
jl 0x10065f13
cmp dword [ebx + 0x10], 0x200
ja 0x10065f18
xor eax, eax
inc eax
jmp 0x10065f61
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x54]
call fcn.100566f2
add esp, 0xc
cmp edx, esi
jl 0x10065f43
jg 0x10065f35
cmp eax, esi
jbe 0x10065f43
mov ecx, dword [ebx + 8]
cmp ecx, eax
jne 0x10065f43
mov eax, dword [ebx + 0xc]
cmp eax, edx
je 0x10065f13
cmp dword [ebp + 0x2c], esi
jl 0x10065f5f
jg 0x10065f4f
cmp dword [ebp + 0x28], esi
jbe 0x10065f5f
mov eax, dword [ebx + 8]
cmp eax, dword [ebp + 0x28]
jne 0x10065f5f
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebp + 0x2c]
je 0x10065f13
xor eax, eax
push eax
lea eax, [ebp - 0xa0]
push 0x100d0824
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, dword [ebp + 0x44]
lea eax, [eax + eax*8]
shl eax, 4
lea ebx, [eax + edi]
push dword [ebx + 0xc]
lea eax, [ebp - 0x270]
push dword [ebx + 8]
push eax
call fcn.100a0e43
push dword [ebx + 0x14]
lea eax, [ebp - 0x368]
push dword [ebx + 0x10]
push eax
call fcn.100a0e43
mov eax, dword [ebx + 8]
add eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
adc ecx, dword [ebx + 0x14]
push ecx
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.100a0e43
mov eax, dword [ebp + 0x70]
add esp, 0x24
and eax, 1
mov dword [ebp + 0x24], str.__4d__3d__14s__14s__11d__14s_s_s
je 0x10065fda
mov dword [ebp + 0x24], str._0x_02X__3d__14s__14s__11d__14s_s_s
xor edi, edi
cmp eax, edi
mov esi, str.0x_02X
jne 0x10065fea
mov esi, 0x100c72f0
cmp byte [ebp + 0x5a], 0
jl 0x10066004
push 0x100d077c
lea eax, [ebp - 0x2ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x10066024
cmp byte [ebp + 0x5b], 1
jne 0x10066024
push str._016I64X
push dword [ebx + 0x44]
lea eax, [ebp - 0x2ec]
push dword [ebx + 0x40]
push eax
call fcn.100a0df8
add esp, 0x10
cmp byte [ebp + 0x5a], 0
jl 0x1006603f
movzx eax, byte [ebx + 0x20]
push eax
lea eax, [ebp - 0x1f4]
push esi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x10066056
cmp byte [ebp + 0x5b], 1
jne 0x10066059
push edi
lea eax, [ebx + 0x20]
push eax
lea eax, [ebp - 0x1f4]
push eax
call fcn.1004363d
add esp, 0xc
cmp word [ebp + 0x1c], di
mov dword [ebp + 0x48], edi
mov word [ebp - 0x78], di
je 0x1006608d
cmp byte [ebp + 0x3a], 0
mov word [ebp - 0x78], 0x20
mov word [ebp - 0x76], 0x2a
mov word [ebp - 0x74], 0x20
mov word [ebp - 0x72], di
jne 0x1006608d
mov word [ebp - 0x74], di
mov dword [ebp + 0x48], 1
cmp byte [ebp + 0x5a], 0
jl 0x100660f0
cmp word [ebp + 0x1c], di
je 0x100660f0
and dword [ebp + 0x48], 0
lea ecx, [ebp + 0x1c]
call fcn.10046123
lea esi, [ebx + 0x30]
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 2
lea eax, [ebp + 0x1c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x18]
push eax
movsd dword es:[edi], dword [esi]
call fcn.10065259
push 0x10
lea eax, [ebx + 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1003fa82
add esp, 0x18
test eax, eax
je 0x100660e6
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x76]
push eax
call fcn.1004363d
add esp, 0xc
lea ecx, [ebp + 0x1c]
call fcn.1003f96c
xor edi, edi
cmp byte [ebp + 0x5b], 0
je 0x1006610a
push edi
lea eax, [ebx + 0x30]
push eax
lea eax, [ebp - 0x3cc]
push eax
call fcn.1004363d
add esp, 0xc
mov al, byte [ebp + 0x5b]
test al, 1
mov esi, 0x100ca904
je 0x1006611d
mov ecx, 0x100d06e0
jmp 0x10066128
test al, al
mov ecx, esi
jne 0x10066128
mov ecx, 0x100d06e8
cmp al, 0x10
jne 0x100661b7
cmp byte [ebx + 0x21], 0
je 0x100661b5
mov ecx, 0x100cb428
mov edi, dword [ebp + 0x64]
mov edx, dword [ebp + 0x50]
mov eax, dword [edi]
lea eax, [eax + edx*2]
lea edx, [ebp - 0xa0]
push edx
lea edx, [ebp - 0x78]
push edx
lea edx, [ebp - 0x3cc]
push edx
lea edx, [ebp - 0x2ec]
push edx
lea edx, [ebp - 0x368]
push edx
lea edx, [ebp - 0x270]
push edx
push ecx
lea ecx, [ebp - 0x1f4]
push ecx
push str.__s__s__14s__14s__s__s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x28
push dword [edi]
mov dword [ebp + 0x50], eax
call esi
test byte [ebp + 0x70], 0x10
mov dword [ebp + 0x30], eax
je 0x10066252
cmp byte [ebp + 0x5a], 0
jge 0x100661b0
cmp byte [ebp + 0x5b], 0
je 0x1006620c
cmp dword [ebp + 0x14], 0
je 0x100661f6
mov eax, dword [ebp + 0x6c]
jmp 0x1006621f
mov ecx, esi
test al, al
jne 0x1006613b
mov edi, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x50]
mov eax, dword [edi]
lea eax, [eax + ecx*2]
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x448]
push ecx
push dword [ebx + 0x24]
lea ecx, [ebp - 0x368]
push ecx
lea ecx, [ebp - 0x270]
push ecx
movzx ecx, byte [ebx + 0x21]
push ecx
push dword [ebp + 0x3c]
push dword [ebp + 0x24]
jmp 0x1006617a
push 1
push dword [ebp + 0x20]
push dword [ebp + 4]
push dword [ebp - 4]
push ebx
call fcn.1004acf5
add esp, 0x14
jmp 0x1006621f
mov eax, dword [ebp + 0x44]
cmp eax, 3
jg 0x10066217
inc eax
jmp 0x1006621f
cdq
push 4
pop ecx
idiv ecx
add eax, ecx
cmp dword [ebp + 0x48], 0
je 0x10066237
mov edx, dword [ebp + 0x30]
mov ecx, dword [edi]
inc dword [ebp + 0x30]
and dword [ebp + 0x48], 0
mov word [ecx + edx*2], 0x20
mov ecx, dword [ebp + 0x30]
movzx eax, ax
push eax
mov eax, dword [edi]
lea eax, [eax + ecx*2]
push str.__3u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, dword [ebp + 0x74]
test eax, eax
je 0x10066264
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov ecx, dword [ebx + 0xc]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x10066270
mov ecx, dword [ebp + 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x64]
mov edi, dword [eax]
push edi
call esi
lea esi, [edi + eax*2]
lea edi, [esi + 2]
and word [edi], 0
cmp byte [ebp + 0x5a], 0
mov dword [ebp + 0x6c], esi
jl 0x100662f3
mov eax, dword [ebp + 0x18]
test ax, ax
je 0x100662b9
cmp dword [ebp + 0x48], 0
je 0x100662a0
mov word [esi], 0x20
mov esi, edi
mov word [esi], 0x20
inc esi
inc esi
mov word [esi], ax
inc esi
inc esi
mov word [esi], 0x3a
inc esi
inc esi
and word [esi], 0
jmp 0x10066335
mov eax, dword [ebx + 0x10]
or eax, dword [ebx + 0x14]
je 0x10066335
movzx eax, word [ebx + 0x22]
push eax
push 0x100d0378
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp + 0xc]
xor eax, eax
mov ax, word [ebx + 0x40]
add ebx, 0x30
push eax
push dword [ebp - 8]
push ebx
call fcn.10065412
add esp, 0x1c
test eax, eax
jle 0x10066335
jmp 0x10066293
xor eax, eax
cmp dword [ebp + 0x68], eax
jl 0x10066335
cmp dword [ebp + 0x48], eax
je 0x10066306
mov word [esi], 0x20
mov esi, edi
mov word [esi], 0x20
inc esi
inc esi
cmp byte [ebp + 0x3b], 0
mov word [esi], ax
je 0x10066319
mov dword [ebp + 0x6c], esi
push eax
push 1
push eax
push dword [ebp - 8]
mov word [esi + 2], ax
push dword [ebp + 8]
push dword [ebp + 0x68]
push esi
call fcn.100558a3
add esp, 0x1c
mov esi, eax
mov eax, dword [ebp + 0x6c]
cmp word [eax], 0
jne 0x10066348
movsx cx, byte [ebp + 0x3b]
mov word [eax], cx
jmp 0x1006636d
test byte [ebp + 0x70], 8
je 0x1006636d
push dword [ebp + 0x68]
push 0x100d0718
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x1006636d
mov eax, dword [ebp + 0x64]
push dword [eax]
call fcn.10010e64
pop ecx
lea ecx, [ebp + 0x54]
call fcn.10002d56
lea ecx, [ebp + 0x40]
call fcn.1003f96c
lea ecx, [ebp + 0x4c]
call fcn.1003f96c
mov eax, 0x100e3d7c
test eax, eax
je 0x10066395
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x50]
pop edi
pop esi
pop ebx
add ebp, 0x5c
leave
ret