Function at 0x471c5c
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x29c
push ebx
push esi
push edi
mov dword [ebp + 0x58], ecx
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0043f42c
lea eax, [ebp + 0x70]
push eax
call fcn.004378b6
xor ebx, ebx
pop ecx
push 2
pop edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp], ebx
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], ebx
xor esi, esi
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x38], 0xfffffff8
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x10], ebx
mov byte [ebp + 0x67], bl
jmp 0x471ec7
push 0xffffffffffffffff
lea eax, [ebp + 0x70]
push eax
push 0x4ae43c
call fcn.0043f0e5
add esp, 0xc
test al, al
jne 0x471ec4
push 0xffffffffffffffff
lea eax, [ebp + 0x70]
push eax
push 0x4ae438
call fcn.0043f0e5
add esp, 0xc
test al, al
jne 0x471ec4
push 0xffffffffffffffff
lea eax, [ebp + 0x70]
push eax
push 0x4a973c
call fcn.0043f0e5
add esp, 0xc
test al, al
jne 0x471ebe
push 0xffffffffffffffff
lea eax, [ebp + 0x70]
push eax
push 0x4a4b90
call fcn.0043f0e5
add esp, 0xc
test al, al
jne 0x471ebe
push 0xffffffffffffffff
lea eax, [ebp + 0x70]
push eax
push 0x4a8590
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x471d55
mov dword [ebp + 0x18], 1
jmp 0x471ec7
push 3
lea eax, [ebp + 0x70]
push eax
push 0x4ae434
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x471d78
mov dword [ebp + 0x50], 1
jmp 0x471ec7
push 4
lea eax, [ebp + 0x70]
push eax
push str.qu
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x471d97
mov dword [ebp + 0x50], edi
jmp 0x471ec7
push 4
lea eax, [ebp + 0x70]
push eax
push str.off
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x471dba
mov dword [ebp + 0x10], 1
jmp 0x471ec7
push edi
lea eax, [ebp + 0x70]
push eax
push 0x4ae420
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x471dd8
or esi, 0x10
jmp 0x471ec7
push 3
push dword [ebp + 0x70]
push 0x4ae41c
call fcn.00438aa1
add esp, 0xc
test al, al
je 0x471e09
add dword [ebp + 0x70], 6
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x70]
push eax
or esi, 0x10
call fcn.0044880d
pop ecx
pop ecx
jmp 0x471ec7
push 0xffffffffffffffff
lea eax, [ebp + 0x70]
push eax
push str._O:N
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x471e2c
mov dword [ebp + 0x54], 0x20
jmp 0x471ec7
push 0xffffffffffffffff
lea eax, [ebp + 0x70]
push eax
push str._O:_N
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x471e4c
mov dword [ebp + 0x54], 0x60
jmp 0x471ec7
push 0xffffffffffffffff
lea eax, [ebp + 0x70]
push eax
push str.cur
call fcn.0043f0e5
add esp, 0xc
test al, al
je 0x471e6c
mov dword [ebp + 0x40], 1
jmp 0x471ec7
push 6
push dword [ebp + 0x70]
push str._size:
call fcn.00438aa1
add esp, 0xc
test al, al
je 0x471ed3
add dword [ebp + 0x70], 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.00441bc2
mov eax, dword [ebp + 0x70]
movzx eax, word [eax]
cmp ax, bx
pop ecx
pop ecx
je 0x471ed3
call fcn.004820ac
test al, al
jne 0x471ec7
add dword [ebp + 0x70], edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.00441bc2
jmp 0x471e02
or dword [ebp + 0x60], 1
jmp 0x471ec7
or dword [ebp + 0x60], edi
mov eax, dword [ebp + 0x70]
cmp word [eax], bx
jne 0x471cc6
or esi, dword [ebp + 0x54]
lea ecx, [ebp + 0x24]
mov dword [ebp - 0x20], esi
call fcn.0043d3a5
mov esi, 0x4a39d4
push esi
lea ecx, [ebp + 0x44]
call fcn.00445746
push esi
lea ecx, [ebp + 0x4c]
call fcn.00445746
push esi
lea ecx, [ebp + 0x48]
call fcn.00445746
push 1
push 0x2c
pop edi
push edi
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0044e4ae
push ebx
lea ecx, [ebp + 0x24]
push ecx
push eax
call fcn.0043fd51
mov eax, dword [ebp + 0x24]
add esp, 0xc
cmp dword [ebp + 0x60], ebx
mov edx, eax
push 0x5c
mov dword [ebp + 0x54], edx
pop esi
jne 0x471f92
movzx eax, word [eax]
cmp ax, bx
je 0x471f92
mov ecx, eax
mov eax, ecx
call fcn.004820ac
test al, al
jne 0x471f92
cmp cx, 0x40
jne 0x471f55
mov dword [ebp + 0x28], 1
jmp 0x471f7f
cmp cx, 0x24
jne 0x471f64
mov dword [ebp + 0x28], 3
jmp 0x471f7f
cmp cx, si
jne 0x471f75
cmp word [edx + 2], si
je 0x471f8e
or dword [ebp + 0x5c], 1
jmp 0x471f7f
cmp cx, 0x21
jne 0x471f92
or dword [ebp + 0x5c], 2
inc edx
inc edx
mov cx, word [edx]
cmp cx, bx
mov dword [ebp + 0x54], edx
jne 0x471f3b
jmp 0x471f92
mov byte [ebp + 0x67], 1
lea eax, [ebp + 0x54]
push eax
call fcn.004378b6
test byte [ebp + 0x60], 1
pop ecx
jne 0x471fad
push dword [ebp + 0x54]
call fcn.004110a0
pop ecx
jmp 0x471fb0
mov eax, dword [ebp + 0x54]
cmp dword [ebp + 0x5c], ebx
jne 0x471fda
cmp dword [ebp + 0x60], ebx
jne 0x471fdf
cmp byte [ebp + 0x67], bl
jne 0x471fdf
cmp word [eax], si
jne 0x471fca
cmp word [eax + 2], si
je 0x471fdf
lea ecx, [ebp + 0x4c]
push ecx
push eax
call fcn.0041143a
pop ecx
pop ecx
jmp 0x471fe8
inc eax
inc eax
cmp word [eax], si
je 0x471fd8
push eax
lea ecx, [ebp + 0x4c]
call fcn.004457ae
mov eax, dword [ebp + 0x70]
cmp word [eax], di
jne 0x472011
add dword [ebp + 0x70], 2
push 1
push edi
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0044e4ae
push ebx
lea ecx, [ebp + 0x44]
push ecx
push eax
call fcn.0043fd51
add esp, 0xc
cmp dword [ebp + 0x60], ebx
jne 0x47203f
mov eax, dword [ebp + 0x70]
cmp word [eax], di
jne 0x47203f
add dword [ebp + 0x70], 2
push edi
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0044e4ae
push eax
call fcn.0043ff9e
add esp, 0xc
cmp dword [ebp - 0x1c], ebx
jg 0x47204b
mov dword [ebp - 0x1c], 0xfffffff8
mov eax, dword [ebp + 0x70]
cmp word [eax], di
je 0x47205b
xor esi, esi
inc esi
jmp 0x4725f7
add dword [ebp + 0x70], 2
lea eax, [ebp + 0x70]
push eax
call fcn.004378b6
pop ecx
push 0xffffffffffffffff
push dword [ebp + 0x70]
lea ecx, [ebp + 0x48]
call fcn.0043d4c9
mov esi, dword [ebp + 0x48]
cmp word [esi], 0x2a
jne 0x472089
cmp word [esi + 2], bx
mov byte [ebp + 0x67], 1
je 0x47208c
mov byte [ebp + 0x67], bl
lea ecx, [ebp + 4]
call fcn.0043d3a5
cmp byte [ebp + 0x67], bl
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
jne 0x4720ac
push 0xffffffffffffffff
push dword [ebp + 0x44]
lea ecx, [ebp + 4]
call fcn.0043d4c9
mov ecx, dword [ebp + 0x78]
cmp ecx, ebx
mov dword [ebp + 0x30], ebx
je 0x4720ba
mov eax, dword [ecx]
jmp 0x4720bc
xor eax, eax
cmp word [esi], bx
mov dword [ebp + 0x54], eax
jne 0x4720de
cmp eax, ebx
je 0x4720de
mov edx, dword [ebp + 0x58]
mov si, word [edx + 0x5a]
cmp si, word [eax]
jne 0x4720de
push ebx
push ebx
push ecx
mov ecx, edx
call fcn.0043c877
push 0x32a
lea ecx, [ebp + 0x14]
call fcn.0043d3c3
mov eax, dword [ebp + 0x58]
and word [eax + 0x88], 0x8b
mov eax, dword [ebp + 0x48]
mov ax, word [eax]
cmp ax, bx
mov esi, dword [ebp + 0x14]
lea edi, [esi + 4]
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x78], ebx
mov dword [ebp + 0x1c], ebx
jne 0x47212e
mov ecx, dword [ebp + 0x54]
cmp ecx, ebx
je 0x47212e
mov edx, dword [ebp + 0x58]
mov dx, word [edx + 0x5a]
cmp dx, word [ecx]
mov dword [ebp + 0x3c], pe_nt_image_headers32
je 0x472131
mov dword [ebp + 0x3c], ebx
mov ecx, dword [ebp + 0x44]
cmp word [ecx], bx
je 0x47214a
cmp ax, bx
jne 0x47214a
cmp dword [ebp + 0x3c], ebx
mov dword [ebp + 0x20], 1
je 0x47214d
mov dword [ebp + 0x20], ebx
test byte [ebp + 0x60], 2
je 0x47226d
mov esi, 0x4beb4c
push esi
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0x58]
push 0xffffffffffffffff
push ebx
push dword [ebp + 0x4c]
call fcn.00412ddf
cmp eax, ebx
jne 0x47218e
push esi
mov dword [ebp + 0x1c], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp + 0x5c]
jmp 0x472389
push 0xffffffffffffffff
push dword [eax]
lea ecx, [ebp + 0x5c]
call fcn.0043d4c9
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 0x5c]
mov dword [ebp + 0x70], esi
mov dword [ebp + 0x2c], ebx
jmp 0x472257
mov eax, dword [ebp + 0x58]
test byte [eax + 0x88], 0xef
jne 0x472260
lea eax, [ebp + 0x70]
mov dword [ebp + 0x38], esi
call fcn.004125a7
push dword [ebp + 0x38]
mov esi, dword [ebp + 0x70]
mov di, word [esi]
push dword [ebp + 0x44]
mov ecx, dword [ebp + 0x58]
mov word [esi], bx
call fcn.0043cc80
cmp di, 0xd
jne 0x4721f3
cmp word [esi + 2], 0xa
jne 0x4721f8
add esi, 4
jmp 0x4721fa
cmp di, bx
je 0x4721fd
inc esi
inc esi
mov dword [ebp + 0x70], esi
inc dword [ebp + 0x78]
cmp dword [ebp + 0x3c], ebx
je 0x472225
mov eax, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x58]
add eax, 2
push 0x4a39d4
mov dword [ebp + 0x30], eax
push ebx
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x74]
call fcn.0046a8f9
jmp 0x47223d
mov eax, dword [ebp + 0x48]
cmp word [eax], bx
je 0x47223d
push dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x58]
push ebx
push dword [ebp + 0x74]
push eax
call fcn.0042cae7
mov ecx, dword [ebp + 0x58]
mov ax, word [ecx + 0x88]
test ah, 1
je 0x472257
and ax, 0xfeff
mov word [ecx + 0x88], ax
cmp word [esi], bx
jne 0x4721af
lea ecx, [ebp + 0x2c]
call fcn.00437884
jmp 0x472186
cmp dword [ebp + 0x60], 1
jne 0x4723b3
mov ecx, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x50]
dec edx
cmp word [ecx], bx
mov dword [ebp + 0x70], ecx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x38], edx
je 0x472386
jmp 0x472295
mov edx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x58]
test byte [eax + 0x88], 0xef
jne 0x472386
xor edi, edi
cmp dword [ebp + 0x50], ebx
mov esi, ecx
je 0x4722eb
cmp word [ecx], 0x22
jne 0x4722eb
lea esi, [ecx + edx*2]
jmp 0x4722d3
cmp ax, 0x22
jne 0x4722d3
xor eax, eax
mov ax, word [ecx + 2]
cmp ax, bx
je 0x4722e2
call fcn.004820ac
test al, al
jne 0x4722e2
inc ecx
inc ecx
mov ax, word [ecx]
cmp ax, bx
mov dword [ebp + 0x70], ecx
jne 0x4722b9
jmp 0x4722f8
inc ecx
inc ecx
mov edi, edx
mov dword [ebp + 0x70], ecx
jmp 0x4722f8
lea eax, [ebp + 0x70]
push eax
call fcn.00405061
pop ecx
mov ecx, dword [ebp + 0x70]
lea eax, [edi + edi]
sub ecx, eax
sub ecx, esi
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 0x40]
call fcn.0043d4c9
lea eax, [ebp + 0x70]
push eax
call fcn.004378b6
mov esi, dword [ebp + 0x58]
pop ecx
push dword [ebp + 0x40]
mov ecx, esi
push dword [ebp + 0x44]
call fcn.0043cc80
inc dword [ebp + 0x78]
cmp dword [ebp + 0x3c], ebx
je 0x47234c
mov eax, dword [ebp + 0x54]
add eax, 2
push 0x4a39d4
mov dword [ebp + 0x30], eax
push ebx
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x74]
mov ecx, esi
call fcn.0046a8f9
jmp 0x472363
mov eax, dword [ebp + 0x48]
cmp word [eax], bx
je 0x472363
push dword [ebp + 0x7c]
mov ecx, esi
push ebx
push dword [ebp + 0x74]
push eax
call fcn.0042cae7
mov ax, word [esi + 0x88]
test ah, 1
je 0x47237a
and ax, 0xfeff
mov word [esi + 0x88], ax
mov ecx, dword [ebp + 0x70]
cmp word [ecx], bx
jne 0x472292
lea ecx, [ebp + 0x40]
call fcn.00437884
mov ecx, dword [ebp + 0x58]
and word [ecx + 0x88], 0x8b
cmp byte [ebp + 0x67], bl
je 0x4725c8
push dword [ebp + 4]
push dword [ebp + 0x44]
call fcn.0043cc80
jmp 0x4725dc
push dword [ebp + 0x4c]
call fcn.004110a0
pop ecx
push eax
lea ecx, [ebp + 0x4c]
call fcn.004457ae
mov eax, dword [ebp + 0x4c]
cmp word [eax], bx
je 0x47238e
cmp dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], ebx
je 0x47246b
cmp dword [ebp + 0x40], ebx
je 0x472414
lea eax, [ebp - 0x234]
push eax
push 0x104
mov word [ebp - 0x234], bx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x234]
cmp ax, 0x61
mov dword [ebp + 0x60], eax
jb 0x472414
cmp ax, 0x7a
ja 0x472414
and eax, 0xffdf
mov dword [ebp + 0x60], eax
mov word [edi + 2], bx
mov word [edi], bx
push edi
mov word [esi + 2], bx
push 0x324
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov al, byte [ebp + 0x5c]
and al, 2
cmp word [edi], bx
mov dword [ebp + 0x50], edi
mov byte [ebp + 0x73], al
mov esi, edi
je 0x472453
push esi
mov dword [ebp + 0x50], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x472440
cmp byte [ebp + 0x73], bl
je 0x472463
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x70], eax
jmp 0x472537
mov dword [ebp + 0x70], edi
jmp 0x472537
mov esi, eax
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x4c], ebx
cmp dword [ebp + 0x3c], ebx
jne 0x472489
mov eax, dword [ebp + 0x48]
cmp word [eax], bx
jne 0x472489
cmp dword [ebp + 0x20], ebx
je 0x47238e
cmp dword [ebp + 0x18], ebx
je 0x4724ae
xor eax, eax
mov ax, word [esi]
cmp ax, bx
je 0x4724ae
cmp word [esi + 2], 0x3a
jne 0x4724ae
push eax
call fcn.0048ee7d
test eax, eax
pop ecx
je 0x47252e
lea ecx, [ebp + 0x50]
call fcn.0043d3a5
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x50]
push eax
push esi
mov dword [ebp + 0x2c], ebx
call fcn.004827ce
add esp, 0xc
cmp dword [ebp + 0x10], ebx
je 0x4724de
mov eax, dword [ebp + 0x2c]
sub eax, dword [ebp + 0x50]
sar eax, 1
cdq
mov dword [ebp - 4], eax
mov dword [ebp], edx
push dword [ebp + 0x7c]
mov esi, dword [ebp + 0x58]
push dword [ebp + 0x38]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x48]
mov eax, dword [ebp + 0x3c]
or eax, dword [ebp - 0x20]
mov ecx, esi
or eax, dword [ebp + 0x28]
push eax
push dword [ebp + 0x54]
lea eax, [ebp + 4]
push dword [ebp + 0x74]
push dword [ebp + 0x50]
push eax
call fcn.0047171f
add dword [ebp + 0x78], eax
mov ax, word [esi + 0x88]
test ah, 1
je 0x472526
and ax, 0xfeff
mov word [esi + 0x88], ax
lea ecx, [ebp + 0x50]
call fcn.00437884
cmp dword [ebp + 0x5c], ebx
je 0x47238e
mov eax, dword [ebp + 0x70]
cmp word [eax], bx
je 0x47238e
lea eax, [ebp - 0x1c]
cmp dword [eax], ebx
je 0x47238e
mov eax, dword [ebp + 0x58]
test byte [eax + 0x88], 0xef
jne 0x47238e
mov esi, dword [ebp + 0x70]
push 0xffffffffffffffff
push esi
lea ecx, [ebp + 0x34]
call fcn.0043d4c9
push dword [ebp + 0x4c]
lea ecx, [ebp + 0x34]
call fcn.0043d411
cmp dword [ebp + 0x40], ebx
jne 0x4725b6
test byte [ebp + 0x5c], 2
je 0x472597
dec esi
dec esi
jmp 0x47258e
add esi, 0xfffffffe
cmp word [esi], bx
je 0x4725a5
cmp esi, edi
mov dword [ebp + 0x70], esi
ja 0x472586
jmp 0x4725a5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2 + 2]
mov dword [ebp + 0x70], eax
mov esi, dword [ebp + 0x34]
mov ax, word [ebp + 0x60]
cmp ax, word [esi]
je 0x472537
jmp 0x472473
mov esi, dword [ebp + 0x34]
mov ax, word [ebp + 0x60]
mov word [esi], ax
mov dword [ebp + 0x40], ebx
jmp 0x472473
cmp dword [ebp + 0x20], ebx
je 0x4725dc
push dword [ebp + 0x44]
push dword [ebp + 0x78]
push ecx
call fcn.0043f71c
add esp, 0xc
lea ecx, [ebp + 0x34]
call fcn.00437884
lea ecx, [ebp + 0x14]
call fcn.00437884
lea ecx, [ebp + 4]
call fcn.00437884
mov esi, dword [ebp + 0x1c]
lea ecx, [ebp + 0x48]
call fcn.00437884
lea ecx, [ebp + 0x4c]
call fcn.00437884
lea ecx, [ebp + 0x44]
call fcn.00437884
lea ecx, [ebp + 0x24]
call fcn.00437884
lea ecx, [ebp - 0x2c]
call fcn.00437884
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10