Function at 0x404070
Capabilities:
Get common file path

Disassembly:
sub esp, 0x538
push ebx
push ebp
push esi
push edi
call fcn.00405360
test eax, eax
jne 0x404108
mov al, byte [esp + 0x1f]
push 0
lea ecx, [esp + 0x44]
mov byte [esp + 0x44], al
call fcn.00401d10
mov edi, str.error:_SetLocationInfo___failed__exiting_program_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.error:_SetLocationInfo___failed__exiting_program_n
lea ecx, [esp + 0x48]
call fcn.00402330
sub esp, 0x10
mov cl, byte [esp + 0x50]
mov esi, esp
mov dword [esp + 0x24], esp
push 0
mov byte [esi], cl
mov ecx, esi
call fcn.00401d10
mov edx, dword [0x419218]
lea eax, [esp + 0x50]
push edx
push 0
push eax
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
add esp, 0x10
lea ecx, [esp + 0x40]
push 1
call fcn.00401d10
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x538
ret 0x10
push 0
push 0
call fcn.0040e650
add esp, 8
test ax, ax
jne 0x40411e
mov eax, 0x409
push str.SetBDRes.dll
lea ecx, [esp + 0x7c]
push 0x41fbc0
push ecx
mov word [0x41fb68], ax
call fcn.0040f530
mov eax, dword [esp + 0x88]
add esp, 0xc
test eax, eax
jne 0x40414b
mov eax, 0x41921c
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x41fb88], eax
jne 0x404207
mov dl, byte [esp + 0x1f]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x44], dl
call fcn.00401d10
mov edi, str.unable_to_load:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.unable_to_load:
lea ecx, [esp + 0x48]
call fcn.00402330
mov eax, dword [0x419218]
lea ecx, [esp + 0x78]
push eax
push 0
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040f2f0
mov edi, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41c2dc
lea ecx, [esp + 0x48]
call fcn.0040f3d0
sub esp, 0x10
mov dl, byte [esp + 0x50]
mov esi, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, esi
mov byte [esi], dl
call fcn.00401d10
mov eax, dword [0x419218]
lea ecx, [esp + 0x50]
push eax
push 0
push ecx
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
add esp, 0x10
lea ecx, [esp + 0x40]
push 1
call fcn.00401d10
jmp 0x4049a7
lea edx, [esp + 0x1f]
lea eax, [esp + 0x13]
push edx
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.0040f1d0
push 0
mov cl, byte [esp + 0x17]
mov byte [esp + 0x58], cl
lea ecx, [esp + 0x58]
call fcn.00401d10
mov edx, dword [0x41fc08]
mov eax, dword [0x41fc04]
push edx
push eax
lea ecx, [esp + 0x38]
call section..text
cmp eax, 1
jge 0x4042af
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x24], esp
push 0
mov byte [ebp], cl
mov ecx, ebp
call fcn.00401d10
mov edi, str.command_line:_no_options__install_in_GUI_mode_n
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402510
test al, al
je 0x4042a2
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, str.command_line:_no_options__install_in_GUI_mode_n
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004024f0
call fcn.004051f0
add esp, 0x10
jmp 0x4048cf
push 0x41c2a8
lea ecx, [esp + 0x34]
call fcn.00401470
test al, al
jne 0x4050f0
push 0x41c2a4
lea ecx, [esp + 0x34]
call fcn.00401470
test al, al
jne 0x4050f0
push 0x41c2a0
lea ecx, [esp + 0x34]
call fcn.00401470
test al, al
jne 0x4050f0
push 0x41c29c
lea ecx, [esp + 0x34]
call fcn.00401470
test al, al
jne 0x404443
push 0x41c298
lea ecx, [esp + 0x34]
call fcn.00401470
test al, al
jne 0x404443
push 0x41c294
lea ecx, [esp + 0x34]
call fcn.00401470
test al, al
jne 0x404345
push 0x41c290
lea ecx, [esp + 0x34]
call fcn.00401470
test al, al
je 0x4044ad
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, ebp
mov byte [ebp], al
call fcn.00401d10
mov edi, str.command_line:__s__install_silently_n
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402510
test al, al
je 0x40439d
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, str.command_line:__s__install_silently_n
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004024f0
call fcn.004051f0
add esp, 0x10
lea ecx, [esp + 0x30]
mov dword [0x41fbac], 1
push 0x41c264
call fcn.00401470
test al, al
jne 0x4043d7
push 0x41c260
lea ecx, [esp + 0x34]
call fcn.00401470
test al, al
je 0x4044ad
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, ebp
mov byte [ebp], al
call fcn.00401d10
mov edi, str.command_line:__r__force_a_reboot_n
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402510
test al, al
je 0x40442f
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, str.command_line:__r__force_a_reboot_n
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004024f0
call fcn.004051f0
add esp, 0x10
mov dword [0x41fba4], 1
jmp 0x4044ad
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, ebp
mov byte [ebp], al
call fcn.00401d10
mov edi, str.command_line:__u__uninstall_n
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402510
test al, al
je 0x40449b
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, str.command_line:__u__uninstall_n
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004024f0
call fcn.004051f0
add esp, 0x10
mov dword [0x41fba8], 1
push 0x41c218
lea ecx, [esp + 0x34]
call fcn.00401470
test al, al
jne 0x4044dd
push 0x41c214
lea ecx, [esp + 0x34]
call fcn.00401470
test al, al
jne 0x4044dd
mov dword [0x41fb8c], 0
jmp 0x404523
mov al, byte [esp + 0x13]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, esi
mov byte [esi], al
call fcn.00401d10
mov edi, str.command_line:__n__force_scan_of_all_INF_files_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.command_line:__n__force_scan_of_all_INF_files_n
mov ecx, esi
call fcn.00402330
call fcn.004051f0
add esp, 0x10
mov dword [0x41fb8c], 1
push str._infdir
lea ecx, [esp + 0x34]
call fcn.00401470
test al, al
jne 0x40454b
push str._INFDIR
lea ecx, [esp + 0x34]
call fcn.00401470
test al, al
je 0x4048cf
push str._infdir
lea ecx, [esp + 0x34]
call fcn.00401470
test al, al
je 0x404593
push 0x41fa60
push 0
lea ecx, [esp + 0x70]
push str._infdir
push ecx
lea ecx, [esp + 0x40]
call fcn.00401540
mov edx, dword [0x419218]
mov ecx, 0x41fb90
push edx
push 0
push eax
call fcn.00401b10
push 1
lea ecx, [esp + 0x6c]
jmp 0x4045d9
push str._INFDIR
lea ecx, [esp + 0x34]
call fcn.00401470
test al, al
je 0x4045de
push 0x41fa60
push 0
lea eax, [esp + 0x70]
push str._INFDIR
push eax
lea ecx, [esp + 0x40]
call fcn.00401540
mov ecx, dword [0x419218]
push ecx
push 0
push eax
mov ecx, 0x41fb90
call fcn.00401b10
push 1
lea ecx, [esp + 0x6c]
call fcn.00401d10
mov eax, dword [0x41fb98]
lea esi, [eax - 1]
cmp eax, esi
jb 0x404608
mov eax, dword [0x41fb94]
test eax, eax
je 0x404608
mov ecx, 0x41fb90
call fcn.0040f150
mov edx, dword [0x41fb94]
lea eax, [esi + edx]
jmp 0x40460d
mov eax, 0x41921c
cmp byte [eax], 0x5c
je 0x404631
mov edi, 0x41c1cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41c1cc
mov ecx, 0x41fb90
call fcn.0040f3d0
mov edi, 0x41c1c8
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x419218]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x41c1c8
mov ecx, 0x41fb90
call fcn.0040f0d0
cmp eax, 0xffffffff
jne 0x4047fa
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xb5]
mov byte [esp + 0xb4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xb4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
mov cl, byte [esp + 0x17]
mov byte [esp + 0x24], cl
lea ecx, [esp + 0x24]
call fcn.00401d10
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x24]
push ebx
call fcn.00402510
test al, al
je 0x4046e9
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0xb4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.004024f0
mov eax, dword [0x41fb94]
test eax, eax
je 0x404703
mov ecx, 0x41fb90
call fcn.0040f150
mov eax, dword [0x41fb94]
jmp 0x404708
mov eax, 0x41921c
cmp byte [eax], 0x5c
jne 0x404766
push 2
lea eax, [esp + 0x6c]
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.0040ee90
lea ecx, [esp + 0x68]
push 0x41fb90
lea edx, [esp + 0xa8]
push ecx
push edx
call fcn.0040f660
mov ecx, dword [0x419218]
add esp, 0xc
push ecx
push 0
push eax
mov ecx, 0x41fb90
call fcn.00401b10
push 1
lea ecx, [esp + 0xa8]
call fcn.00401d10
push 1
lea ecx, [esp + 0x6c]
jmp 0x4047ea
mov eax, dword [esp + 0x28]
lea esi, [eax - 1]
cmp eax, esi
jb 0x40478b
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40478b
lea ecx, [esp + 0x20]
call fcn.0040f150
mov edx, dword [esp + 0x24]
lea eax, [edx + esi]
jmp 0x404790
mov eax, 0x41921c
cmp byte [eax], 0x5c
je 0x4047b3
mov edi, 0x41c1cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41c1cc
lea ecx, [esp + 0x28]
call fcn.0040f3d0
lea eax, [esp + 0x20]
push 0x41fb90
lea ecx, [esp + 0xa8]
push eax
push ecx
call fcn.0040f660
mov edx, dword [0x419218]
add esp, 0xc
mov ecx, 0x41fb90
push edx
push 0
push eax
call fcn.00401b10
push 1
lea ecx, [esp + 0xa8]
call fcn.00401d10
push 1
lea ecx, [esp + 0x24]
call fcn.00401d10
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x44]
mov dword [0x41fba0], 1
mov byte [esp + 0x44], al
call fcn.00401d10
mov edi, str.command_line:__infdir__directory_path_for_INFs_is__
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x44]
push ebx
call fcn.00402510
test al, al
je 0x40485b
mov edi, dword [esp + 0x44]
mov ecx, ebx
mov edx, ecx
mov esi, str.command_line:__infdir__directory_path_for_INFs_is__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x44]
call fcn.004024f0
mov eax, dword [0x419218]
lea ecx, [esp + 0x40]
push eax
push 0
push 0x41fb90
call fcn.0040f2f0
mov edi, 0x41c18c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41c18c
lea ecx, [esp + 0x48]
call fcn.0040f3d0
sub esp, 0x10
mov cl, byte [esp + 0x50]
mov esi, esp
mov dword [esp + 0x24], esp
push 0
mov byte [esi], cl
mov ecx, esi
call fcn.00401d10
mov edx, dword [0x419218]
lea eax, [esp + 0x50]
push edx
push 0
push eax
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
add esp, 0x10
lea ecx, [esp + 0x40]
push 1
call fcn.00401d10
mov ecx, dword [str.SetupBD]
mov edx, dword [0x41c188]
xor eax, eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x90], eax
lea ecx, [esp + 0x88]
mov dword [esp + 0x94], eax
push ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0x90], edx
mov dword [esp + 0xa0], eax
mov byte [esp + 0xa4], al
call fcn.00406550
add esp, 4
test eax, eax
je 0x4049c2
mov dl, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, ebp
mov byte [ebp], dl
call fcn.00401d10
mov edi, str.detected_previous_instance_of_application_or_PROSet_is_active__unable_to_continue_n
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402510
test al, al
je 0x40497e
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
mov esi, str.detected_previous_instance_of_application_or_PROSet_is_active__unable_to_continue_n
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004024f0
call fcn.004051f0
mov ecx, dword [0x41fb88]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
lea ecx, [esp + 0x58]
call fcn.00401d10
lea ecx, [esp + 0x30]
call fcn.0040f020
push 1
lea ecx, [esp + 0x7c]
call fcn.00401d10
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x538
ret 0x10
push 0x500
call fcn.00410375
mov edi, eax
mov ecx, 0x140
xor eax, eax
mov dword [esp + 0x18], edi
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [esp + 0x4b4]
call fcn.00403b10
cmp eax, 5
jne 0x404d1b
push 1
sub esp, 0x10
mov edx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00405d00
add esp, 4
lea eax, [esp + 0x7c]
push eax
call fcn.0040bee0
mov cl, byte [esp + 0x2b]
add esp, 0x18
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
push 0
call fcn.00401d10
mov edi, str.NMS_dir:
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call fcn.00402510
test al, al
je 0x404a6d
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov edx, ecx
mov esi, str.NMS_dir:
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [eax + ebp], 0
mov ecx, dword [0x419218]
xor ebx, ebx
push ecx
lea edx, [esp + 0x6c]
push ebx
push edx
lea ecx, [esp + 0x2c]
call fcn.0040f2f0
mov edi, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x28]
repne scasb al, byte es:[edi]
mov eax, dword [0x419218]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x404aaa
call fcn.0040f879
cmp esi, ebx
jbe 0x404aee
mov ecx, dword [esp + 0x28]
push ebx
lea ebp, [ecx + esi]
lea ecx, [esp + 0x24]
push ebp
call fcn.00402510
test al, al
je 0x404aee
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, esi
mov esi, 0x41c2dc
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.004024f0
mov al, byte [esp + 0x20]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x28], esp
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.00401d10
mov ecx, dword [0x419218]
lea edx, [esp + 0x30]
push ecx
push ebx
push edx
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
add esp, 0x10
lea ecx, [esp + 0x20]
push 1
call fcn.00401d10
mov edi, dword [esp + 0x6c]
cmp edi, ebx
jne 0x404b39
mov edi, 0x41921c
mov eax, dword [esp + 0x14]
or ecx, 0xffffffff
push ebx
lea edx, [eax + 0x400]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
sub esp, 0x10
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x2c], esp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, esp
push ecx
call fcn.00405b80
add esp, 4
lea edx, [esp + 0x54]
push edx
call fcn.0040bee0
mov al, byte [esp + 0x2b]
add esp, 0x18
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
push ebx
call fcn.00401d10
mov edi, str.Inf_name:
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call fcn.00402510
test al, al
je 0x404bd8
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov edx, ecx
mov esi, str.Inf_name:
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [eax + ebp], 0
mov ecx, dword [0x419218]
lea edx, [esp + 0x40]
push ecx
push ebx
push edx
lea ecx, [esp + 0x2c]
call fcn.0040f2f0
mov edi, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x28]
repne scasb al, byte es:[edi]
mov eax, dword [0x419218]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x404c13
call fcn.0040f879
cmp esi, ebx
jbe 0x404c57
mov ecx, dword [esp + 0x28]
push ebx
lea ebp, [ecx + esi]
lea ecx, [esp + 0x24]
push ebp
call fcn.00402510
test al, al
je 0x404c57
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, esi
mov esi, 0x41c2dc
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.004024f0
mov al, byte [esp + 0x20]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x28], esp
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.00401d10
mov ecx, dword [0x419218]
lea edx, [esp + 0x30]
push ecx
push ebx
push edx
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
add esp, 0x10
lea ecx, [esp + 0x20]
push 1
call fcn.00401d10
mov edi, 0x41921c
mov edx, dword [esp + 0x44]
cmp edx, ebx
je 0x404ca4
mov edi, edx
mov eax, dword [esp + 0x14]
or ecx, 0xffffffff
lea ebp, [eax + 0xcc]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp edx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x404ceb
mov al, byte [edx - 1]
test al, al
je 0x404ce1
cmp al, 0xff
je 0x404ce1
dec al
mov byte [edx - 1], al
jmp 0x404ceb
dec edx
push edx
call fcn.0040f86e
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x44], ebx
cmp ecx, ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
je 0x404d1b
mov al, byte [ecx - 1]
test al, al
je 0x404d11
cmp al, 0xff
je 0x404d11
dec al
mov byte [ecx - 1], al
jmp 0x404d1b
dec ecx
push ecx
call fcn.0040f86e
add esp, 4
lea ecx, [esp + 0x50]
xor esi, esi
push ecx
mov dword [esp + 0x68], esi
mov dword [esp + 0x54], esi
call sub.NetInst.dll_long_int___cdecl_DllGetClassFactoryObject_class_ISysProberInterfaceFactory___
mov ecx, dword [esp + 0x54]
add esp, 4
lea eax, [esp + 0x64]
mov edx, dword [ecx]
push eax
call dword [edx]
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
call dword [edx + 4]
call fcn.00409950
test eax, eax
jne 0x404d5c
mov ebx, dword [esp + 0x14]
mov edx, 0x80640008
jmp 0x404d73
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x14]
push ebx
mov eax, dword [ecx]
call dword [eax]
mov edx, eax
cmp edx, esi
je 0x40500a
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xb5]
mov byte [esp + 0xb4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [edx + 0x7f9bfff8]
cmp eax, 0xb
ja case.0x404da5.2140930036
xor ecx, ecx
mov cl, byte [eax + 0x4051d8]
jmp dword [ecx*4 + 0x4051c4]
mov eax, dword [0x41fb88]
lea edx, [esp + 0xb4]
push 0x200
push edx
push 8
push eax
call fcn.0040ea10
mov cl, byte [esp + 0x23]
mov dword [esp + 0x28], esp
mov edx, esp
jmp 0x404e9f
mov edx, dword [0x41fb88]
lea ecx, [esp + 0xb4]
push 0x200
push ecx
push 4
push edx
call fcn.0040ea10
mov al, byte [esp + 0x23]
mov dword [esp + 0x28], esp
mov edx, esp
jmp 0x404e59
mov eax, dword [0x41fb88]
lea edx, [esp + 0xb4]
push 0x200
push edx
push 5
push eax
call fcn.0040ea10
mov cl, byte [esp + 0x23]
mov dword [esp + 0x28], esp
mov edx, esp
jmp 0x404e9f
push str.Windows_NT
push ebx
call fcn.004104a7
add esp, 8
test eax, eax
push 0x200
jne 0x404e80
mov edx, dword [0x41fb88]
lea ecx, [esp + 0xb8]
push ecx
push 6
push edx
call fcn.0040ea10
mov al, byte [esp + 0x23]
mov dword [esp + 0x28], esp
mov edx, esp
mov byte [edx], al
mov dword [edx + 4], esi
mov dword [edx + 8], esi
lea edi, [esp + 0xc4]
or ecx, 0xffffffff
xor eax, eax
mov dword [edx + 0xc], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xc8]
push ecx
jmp 0x404ec4
mov eax, dword [0x41fb88]
lea edx, [esp + 0xb8]
push edx
push 7
push eax
call fcn.0040ea10
mov cl, byte [esp + 0x23]
mov dword [esp + 0x28], esp
mov edx, esp
mov byte [edx], cl
mov dword [edx + 4], esi
mov dword [edx + 8], esi
lea edi, [esp + 0xc4]
or ecx, 0xffffffff
xor eax, eax
mov dword [edx + 0xc], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xc4]
push ecx
push eax
mov ecx, edx
call fcn.00402330
call fcn.004051f0
add esp, 0x10
cmp dword [0x41fbac], esi
jne 0x404f2d
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x2b5]
mov byte [esp + 0x2b4], 0
rep stosd dword es:[edi], eax
mov edx, dword [0x41fb88]
lea ecx, [esp + 0x2b4]
stosw word es:[edi], ax
push 0x200
push ecx
push 3
push edx
stosb byte es:[edi], al
call fcn.0040ea10
add esp, 0x10
lea eax, [esp + 0x2b4]
lea ecx, [esp + 0xb4]
push 0x10
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [0x41fb88]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x58]
cmp ecx, esi
je 0x404f5e
mov al, byte [ecx - 1]
test al, al
je 0x404f54
cmp al, 0xff
je 0x404f54
dec al
mov byte [ecx - 1], al
jmp 0x404f5e
dec ecx
push ecx
call fcn.0040f86e
add esp, 4
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
call fcn.0040f200
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.0040f210
mov eax, dword [esp + 0x34]
push eax
call fcn.0040f86e
mov eax, dword [0x41fbe4]
add esp, 4
dec eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], esi
mov dword [0x41fbe4], eax
jne 0x404fc8
mov eax, dword [0x41fa64]
mov dword [0x41fa64], esi
cmp eax, esi
je 0x404fc8
push eax
call fcn.0040f86e
add esp, 4
mov ecx, dword [esp + 0x7c]
cmp ecx, esi
je 0x404ffa
mov al, byte [ecx - 1]
test al, al
je 0x404ff0
cmp al, 0xff
je 0x404ff0
dec al
mov byte [ecx - 1], al
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x538
ret 0x10
dec ecx
push ecx
call fcn.0040f86e
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x538
ret 0x10
push ebx
call fcn.0040b0e0
mov ecx, dword [0x41fb88]
add esp, 4
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x58]
cmp ecx, esi
je 0x405046
mov al, byte [ecx - 1]
test al, al
je 0x40503c
cmp al, 0xff
je 0x40503c
dec al
mov byte [ecx - 1], al
jmp 0x405046
dec ecx
push ecx
call fcn.0040f86e
add esp, 4
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
call fcn.0040f200
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040f210
mov edx, dword [esp + 0x34]
push edx
call fcn.0040f86e
mov eax, dword [0x41fbe4]
add esp, 4
dec eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], esi
mov dword [0x41fbe4], eax
jne 0x4050b0
mov eax, dword [0x41fa64]
mov dword [0x41fa64], esi
cmp eax, esi
je 0x4050b0
push eax
call fcn.0040f86e
add esp, 4
mov ecx, dword [esp + 0x7c]
cmp ecx, esi
je 0x4050e1
mov al, byte [ecx - 1]
test al, al
je 0x4050d7
cmp al, 0xff
je 0x4050d7
dec al
mov byte [ecx - 1], al
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x538
ret 0x10
dec ecx
push ecx
call fcn.0040f86e
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x538
ret 0x10
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x28], esp
push 0
mov ecx, ebp
mov byte [ebp], al
call fcn.00401d10
mov edi, str.command_line:__h__display_help_n
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00402510
test al, al
je 0x405148
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, str.command_line:__h__display_help_n
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004024f0
call fcn.004051f0
mov al, byte [esp + 0x23]
mov esi, esp
mov dword [esp + 0x28], esp
push 0
mov ecx, esi
mov byte [esi], al
call fcn.00401d10
mov edi, str.WinMain___exit__returning_0_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.WinMain___exit__returning_0_n
mov ecx, esi
call fcn.00402330
call fcn.004051f0
mov ecx, dword [0x41fb88]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
lea ecx, [esp + 0x58]
call fcn.00401d10
lea ecx, [esp + 0x30]
call fcn.0040f020
push 1
lea ecx, [esp + 0x7c]
call fcn.00401d10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x538
ret 0x10