Function at 0x4659e4
Capabilities:
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0x4a4
push ebx
push esi
push edi
push 0x4e3d84
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.00446437
mov esi, dword [ebp + 0x64]
mov eax, dword [esi]
xor edi, edi
mov di, word [eax]
cmp di, 0x7a
ja 0x465a61
cmp di, 0x61
jb 0x465a61
add edi, 0xffe0
mov dword [ebp + 0x44], ebx
and dword [ebp + 0x44], 0x80
jne 0x465a79
push 0x12c
mov ecx, esi
call fcn.004465d3
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 0x465ac3
test di, di
jne 0x465ac3
push 0x3960
push 0
push ebx
call fcn.004b4520
mov dword [ebx], 0xfffffffe
jmp 0x465ad5
movzx ecx, di
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp + 0x4c]
push ebx
call fcn.00455860
and dword [ebp + 0x3c], 0
and dword [ebp + 0x18], 0
add esp, 0xc
lea ecx, [ebp + 0x40]
call fcn.0044658e
test byte [ebp + 0x70], 8
je 0x465c21
cmp dword [ebp + 0x68], 0x7fff
jg 0x465c28
test di, di
mov dword [ebp + 0x3c], 1
mov dword [ebp + 0x18], edi
je 0x465b1a
lea eax, [ebp + 0x40]
push eax
push edi
call fcn.00443de8
pop ecx
pop ecx
xor eax, eax
movzx ecx, di
movsx edx, ax
imul edx, edx, 0x220
cmp dword [edx + ebx + 0x10], ecx
je 0x465b35
inc eax
cmp ax, 0x1a
jl 0x465b1f
cmp ax, 0x1a
push 0xffffffffffffffb3
pop edx
mov dword [ebp + 0x6c], edx
mov dword [ebp + 0x68], edx
jl 0x465b49
or esi, 0xffffffff
jmp 0x465b95
movsx eax, ax
imul eax, eax, 0x220
add eax, ebx
mov ecx, dword [eax + 4]
test ecx, ecx
jl 0x465b63
mov edx, dword [eax]
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x6c], edx
cmp dword [ebp + 0x44], 0
je 0x465baf
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.0043fe25
lea ecx, [ebp + 0x4c]
call fcn.0043fe25
push 0x4e3d84
jmp 0x466137
test byte [ebp + 0x70], 0x20
je 0x465c10
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.00443d2e
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.0043fe25
lea ecx, [ebp + 0x4c]
call fcn.0043fe25
push 0x4e3d84
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 3
pop eax
jmp 0x4667ca
cmp dword [ebp + 0x68], 0
jge 0x465c21
and dword [ebp + 0x68], 0
mov dword [ebp + 0x3c], 0x11
cmp dword [ebp + 0x68], 0x7fff
jbe 0x465c32
mov eax, dword [ebp + 0x68]
mov dword [ebp + 0x44], eax
jmp 0x465c4d
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.00405c6d
cmp dword [ebp + 0x54], ebx
jne 0x465cac
test byte [ebp + 0x3c], 0x10
je 0x465c88
inc dword [ebp + 0x68]
cmp dword [ebp + 0x68], 0x3e80
jl 0x465f8e
lea ecx, [ebp + 0x54]
call fcn.00402d2b
lea ecx, [ebp + 0x40]
call fcn.0043fe25
lea ecx, [ebp + 0x4c]
call fcn.0043fe25
mov eax, 0x4e3d84
cmp eax, ebx
jmp 0x4667be
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 0x465cf0
movzx edi, byte [ebp - 0xc0]
jmp 0x465cf7
mov byte [ebp - 0xc0], 0x85
push 0x200
push dword [ebp + 0x54]
call fcn.004438ac
cmp byte [0x4e2e78], 0
pop ecx
mov esi, eax
pop ecx
mov dword [ebp + 0x20], esi
je 0x465d34
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 0x4e3110
call fcn.00411365
add esp, 0x18
lea eax, [ebp + 0x34]
push eax
push dword [ebp + 0x4c]
mov dword [ebp + 0x34], ebx
push dword [ebp + 0x54]
call fcn.00443c2d
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x465c88
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 0x465d93
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.0044b37e
add esp, 0x24
add edi, 0x30
test ebx, ebx
jne 0x465dd4
cmp dword [ebp + 0x34], 4
jne 0x465dd4
mov al, byte [ebp + 0x7c]
cmp al, byte [edi + 0x20]
jne 0x465dd4
cmp byte [edi + 0xb0], bl
jne 0x465dd4
cmp byte [edi + 0x140], bl
jne 0x465dd4
cmp byte [edi + 0x1d0], bl
jne 0x465dd4
push dword [ebp + 0x54]
push ebx
call fcn.004484dc
cmp eax, 7
pop ecx
pop ecx
jne 0x46679f
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 0x465ee9
lea ebx, [edi + 0x20]
cmp byte [ebp + 0x5b], 0
jne 0x465e10
cmp byte [ebx], 0x42
je 0x465e8c
jmp 0x465eba
push 0x10
push 0x4cda74
push ebx
call fcn.0043ff15
add esp, 0xc
test eax, eax
jne 0x465e47
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 0x465e75
push 0x10
push 0x4cda84
push ebx
call fcn.0043ff15
add esp, 0xc
test eax, eax
jne 0x465e72
mov eax, dword [ebp + 0x20]
cdq
push edx
push eax
push dword [ebx - 0x14]
push dword [ebx - 0x18]
call fcn.004b4580
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
mov ecx, dword [ebp + 0x28]
mov eax, esi
or eax, dword [ebp - 0xc]
je 0x465eba
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
je 0x465eba
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.0044b770
add esp, 0x20
cmp eax, 0xffffff00
mov dword [ebp + 0xc], eax
jg 0x465ed1
inc dword [ebp + 0x44]
mov eax, dword [ebp + 0x44]
add ebx, 0x90
cmp eax, dword [ebp + 0x34]
jl 0x465dfc
jmp 0x465ee9
mov esi, dword [ebp + 0xc]
mov al, byte [ebp + 8]
or byte [ebp + 0x5b], 0x10
test esi, esi
mov byte [ebp + 0x5a], al
jle 0x466115
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 0x465f6b
cmp word [ebp + 0x18], 0
je 0x465f6b
lea ecx, [ebp]
call fcn.0044658e
xor ebx, ebx
cmp dword [ebp + 0x34], ebx
jle 0x465f42
lea esi, [edi + 0x30]
push 0
lea eax, [ebp]
push eax
push esi
call fcn.0046568b
add esp, 0xc
push dword [ebp + 0x40]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x465f4f
inc ebx
add esi, 0x90
cmp ebx, dword [ebp + 0x34]
jl 0x465f17
mov ebx, dword [ebp + 0x6c]
lea ecx, [ebp]
call fcn.0043fe25
jmp 0x465f6e
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 0x465f45
mov ebx, dword [ebp + 0x6c]
test byte [ebp + 0x3c], 0x10
je 0x465f9b
cmp byte [ebp + 0x5a], 0
jl 0x465f7e
test ebx, ebx
jge 0x465f9b
inc dword [ebp + 0x68]
cmp dword [ebp + 0x68], 0x3e80
jge 0x46679f
lea ecx, [ebp + 0x54]
call fcn.00402d2b
jmp 0x465c32
test byte [ebp + 0x70], 2
je 0x465fb5
test byte [ebp + 0x5b], 1
je 0x465fb5
test ebx, ebx
jle 0x465fb5
cmp byte [ebp + 0x5a], 0
jl 0x465fb5
and dword [ebp + 0x70], 0xfffffffd
mov eax, dword [ebp + 0x70]
and eax, 2
mov dword [ebp + 0x14], eax
je 0x466003
cmp byte [ebp + 0x5b], 0
jne 0x465fda
cmp ebx, 4
lea eax, [ebx - 1]
jle 0x465fd5
lea eax, [ebx*4 - 0x10]
mov dword [ebp + 0x48], eax
jmp 0x465ff3
test byte [ebp + 0x5b], 0x10
jne 0x465fe7
cmp word [ebp + 0x24], 0
je 0x465fed
lea eax, [ebx - 1]
mov dword [ebp + 0x48], eax
cmp byte [ebp + 0x5b], 1
je 0x466003
test ebx, ebx
jle 0x466007
mov eax, dword [ebp + 0x48]
cmp eax, dword [ebp + 0x34]
jae 0x46679f
test ebx, ebx
jg 0x46600f
mov ebx, 0xff800000
mov dword [ebp + 0x6c], ebx
cmp dword [ebp + 0x14], 0
je 0x466144
cmp byte [ebp + 0x5b], 0
je 0x46602d
cmp byte [ebp + 0x5a], 0
jl 0x46602d
test ebx, ebx
jg 0x4660ee
test byte [ebp + 0x5b], 1
je 0x466144
cmp byte [ebp + 0x5a], 0
jge 0x466144
mov eax, dword [ebp + 0x6c]
test eax, eax
lea ebx, [eax - 1]
jle 0x46679f
cmp eax, dword [ebp + 4]
jg 0x46679f
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.0044b255
add esp, 0x14
test eax, eax
mov dword [ebp + 0x48], eax
jge 0x4660ee
and dword [ebp + 0x48], 0
push 0x10
lea eax, [edi + 0x20]
push ebx
push eax
call fcn.00414839
push 0x10
lea eax, [ebx + 0x10]
push eax
lea eax, [edi + 0x30]
push eax
call fcn.00414839
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.004b4630
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.004b4630
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 0x46628e
lea ecx, [ebp + 0x54]
call fcn.00402d2b
lea ecx, [ebp + 0x40]
call fcn.0043fe25
lea ecx, [ebp + 0x4c]
call fcn.0043fe25
mov eax, 0x4e3d84
test eax, eax
je 0x46613d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x4667ca
xor ebx, ebx
cmp dword [ebp + 0x34], ebx
jle 0x466253
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 0x4660ee
cmp dword [ebp + 0x6c], 0
jle 0x46617e
cmp dword [ebp + 0x6c], esi
je 0x46610a
jmp 0x466242
cmp byte [ebp + 0x5b], 0
jne 0x46620b
cmp dword [ebp + 0x6c], esi
je 0x4661a9
test eax, eax
jne 0x4661a9
cmp ebx, 4
jl 0x4661a9
mov eax, ebx
push 4
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x466242
mov eax, dword [ebp + 0x3c]
cmp eax, 5
je 0x4661b7
cmp eax, 0xf
je 0x4661b7
xor cl, cl
jmp 0x4661b9
mov cl, 1
cmp dword [ebp + 0x6c], esi
je 0x4661c7
test cl, cl
je 0x4661c7
cmp ebx, 4
jge 0x466242
test eax, eax
jne 0x4661e7
cmp ebx, 3
jg 0x4661d5
lea eax, [ebx + 1]
jmp 0x4661df
mov eax, ebx
cdq
push 4
pop ecx
idiv ecx
add eax, ecx
push eax
push str.___2d
jmp 0x466220
test cl, cl
je 0x4661f6
lea eax, [ebx + 1]
push eax
push 0x4d0840
jmp 0x466220
test esi, esi
jg 0x46621a
cmp ebx, 3
jle 0x46620f
mov eax, ebx
cdq
push 4
pop ecx
idiv ecx
add eax, ecx
jmp 0x466212
test esi, esi
jg 0x46621a
lea eax, [ebx + 1]
push eax
push str.__2d
jmp 0x466220
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.004465fa
inc dword [ebp + 0x50]
add dword [ebp + 0x2c], 0x90
inc ebx
cmp ebx, dword [ebp + 0x34]
jl 0x466155
cmp word [ebp + 0x24], 0
je 0x466794
lea ecx, [ebp + 0x54]
call fcn.00402d2b
lea ecx, [ebp + 0x40]
call fcn.0043fe25
lea ecx, [ebp + 0x4c]
call fcn.0043fe25
mov eax, 0x4e3d84
test eax, eax
je 0x466286
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x4667ca
mov ebx, dword [ebp + 0x64]
push 0x12c
mov ecx, ebx
call fcn.004465d3
cmp dword [ebp + 0x3c], 5
je 0x4662ad
cmp dword [ebp + 0x3c], 0xf
je 0x4662ad
xor al, al
jmp 0x4662af
mov al, 1
cmp byte [ebp + 0x5b], 0
je 0x4662bc
cmp word [ebp + 0x30], 0
jmp 0x4662f2
xor ecx, ecx
cmp dword [ebp + 0x3c], ecx
jne 0x4662d5
cmp word [ebp + 0x30], cx
mov eax, str.__ld
jne 0x4662e9
mov eax, str.___2ld
jmp 0x4662e9
test al, al
je 0x4662ee
cmp word [ebp + 0x30], cx
mov eax, 0x4d07fc
jne 0x4662e9
mov eax, 0x4d07ec
push dword [ebp + 0x6c]
jmp 0x4662ff
cmp word [ebp + 0x30], cx
mov eax, 0x4c7bc8
jne 0x4662fe
mov eax, 0x4d07dc
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 0x4663a9
mov eax, dword [ebp + 0x44]
lea eax, [eax + eax*8]
shl eax, 4
lea ebx, [eax + edi]
cmp dword [ebx + 0x14], esi
jg 0x46634a
jl 0x466345
cmp dword [ebx + 0x10], 0x200
ja 0x46634a
xor eax, eax
inc eax
jmp 0x466393
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x54]
call fcn.00456af2
add esp, 0xc
cmp edx, esi
jl 0x466375
jg 0x466367
cmp eax, esi
jbe 0x466375
mov ecx, dword [ebx + 8]
cmp ecx, eax
jne 0x466375
mov eax, dword [ebx + 0xc]
cmp eax, edx
je 0x466345
cmp dword [ebp + 0x2c], esi
jl 0x466391
jg 0x466381
cmp dword [ebp + 0x28], esi
jbe 0x466391
mov eax, dword [ebx + 8]
cmp eax, dword [ebp + 0x28]
jne 0x466391
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebp + 0x2c]
je 0x466345
xor eax, eax
push eax
lea eax, [ebp - 0xa0]
push 0x4d07d4
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.004a129d
push dword [ebx + 0x14]
lea eax, [ebp - 0x368]
push dword [ebx + 0x10]
push eax
call fcn.004a129d
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.004a129d
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 0x46640c
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 0x46641c
mov esi, 0x4c72f0
cmp byte [ebp + 0x5a], 0
jl 0x466436
push 0x4d072c
lea eax, [ebp - 0x2ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x466456
cmp byte [ebp + 0x5b], 1
jne 0x466456
push str._016I64X
push dword [ebx + 0x44]
lea eax, [ebp - 0x2ec]
push dword [ebx + 0x40]
push eax
call fcn.004a1252
add esp, 0x10
cmp byte [ebp + 0x5a], 0
jl 0x466471
movzx eax, byte [ebx + 0x20]
push eax
lea eax, [ebp - 0x1f4]
push esi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x466488
cmp byte [ebp + 0x5b], 1
jne 0x46648b
push edi
lea eax, [ebx + 0x20]
push eax
lea eax, [ebp - 0x1f4]
push eax
call fcn.00443abf
add esp, 0xc
cmp word [ebp + 0x1c], di
mov dword [ebp + 0x48], edi
mov word [ebp - 0x78], di
je 0x4664bf
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 0x4664bf
mov word [ebp - 0x74], di
mov dword [ebp + 0x48], 1
cmp byte [ebp + 0x5a], 0
jl 0x466522
cmp word [ebp + 0x1c], di
je 0x466522
and dword [ebp + 0x48], 0
lea ecx, [ebp + 0x1c]
call fcn.0044658e
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.0046568b
push 0x10
lea eax, [ebx + 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0043ff15
add esp, 0x18
test eax, eax
je 0x466518
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x76]
push eax
call fcn.00443abf
add esp, 0xc
lea ecx, [ebp + 0x1c]
call fcn.0043fe25
xor edi, edi
cmp byte [ebp + 0x5b], 0
je 0x46653c
push edi
lea eax, [ebx + 0x30]
push eax
lea eax, [ebp - 0x3cc]
push eax
call fcn.00443abf
add esp, 0xc
mov al, byte [ebp + 0x5b]
test al, 1
mov esi, 0x4ca8f4
je 0x46654f
mov ecx, 0x4d0690
jmp 0x46655a
test al, al
mov ecx, esi
jne 0x46655a
mov ecx, 0x4d0698
cmp al, 0x10
jne 0x4665e9
cmp byte [ebx + 0x21], 0
je 0x4665e7
mov ecx, 0x4cb418
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 0x466684
cmp byte [ebp + 0x5a], 0
jge 0x4665e2
cmp byte [ebp + 0x5b], 0
je 0x46663e
cmp dword [ebp + 0x14], 0
je 0x466628
mov eax, dword [ebp + 0x6c]
jmp 0x466651
mov ecx, esi
test al, al
jne 0x46656d
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 0x4665ac
push 1
push dword [ebp + 0x20]
push dword [ebp + 4]
push dword [ebp - 4]
push ebx
call fcn.0044b127
add esp, 0x14
jmp 0x466651
mov eax, dword [ebp + 0x44]
cmp eax, 3
jg 0x466649
inc eax
jmp 0x466651
cdq
push 4
pop ecx
idiv ecx
add eax, ecx
cmp dword [ebp + 0x48], 0
je 0x466669
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 0x466696
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 0x4666a2
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 0x466725
mov eax, dword [ebp + 0x18]
test ax, ax
je 0x4666eb
cmp dword [ebp + 0x48], 0
je 0x4666d2
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 0x466767
mov eax, dword [ebx + 0x10]
or eax, dword [ebx + 0x14]
je 0x466767
movzx eax, word [ebx + 0x22]
push eax
push 0x4d0328
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.00465844
add esp, 0x1c
test eax, eax
jle 0x466767
jmp 0x4666c5
xor eax, eax
cmp dword [ebp + 0x68], eax
jl 0x466767
cmp dword [ebp + 0x48], eax
je 0x466738
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 0x46674b
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.00455ca3
add esp, 0x1c
mov esi, eax
mov eax, dword [ebp + 0x6c]
cmp word [eax], 0
jne 0x46677a
movsx cx, byte [ebp + 0x3b]
mov word [eax], cx
jmp 0x46679f
test byte [ebp + 0x70], 8
je 0x46679f
push dword [ebp + 0x68]
push 0x4d06c8
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x46679f
mov eax, dword [ebp + 0x64]
push dword [eax]
call fcn.004111a0
pop ecx
lea ecx, [ebp + 0x54]
call fcn.00402d2b
lea ecx, [ebp + 0x40]
call fcn.0043fe25
lea ecx, [ebp + 0x4c]
call fcn.0043fe25
mov eax, 0x4e3d84
test eax, eax
je 0x4667c7
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