Function at 0x404ace
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push ebx
push esi
push edi
lea eax, [ebp - 0x354]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x40a118
lea ecx, [ebp - 0x30]
call fcn.004016e4
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call esi
push 1
push 0
lea ecx, [ebp - 0x30]
call fcn.00406637
lea ecx, [ebp - 0x30]
call fcn.0040144a
push dword [ebp + 8]
call esi
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp - 0x10c]
call fcn.0040663a
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
mov esi, 0x40a0ec
push esi
call ebx
pop ecx
lea eax, [eax*2 + 0x40a0ec]
push eax
push esi
lea ecx, [ebp - 0x10c]
call fcn.004014d1
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp - 0xdc]
call fcn.0040663a
push esi
call ebx
pop ecx
lea eax, [eax*2 + 0x40a0ec]
push eax
push esi
lea ecx, [ebp - 0xdc]
call fcn.004014d1
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xdc]
push eax
push dword [0x40a070]
call fcn.00405ba9
add esp, 0xc
test al, al
jne 0x404bea
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040663a
mov edi, 0x409064
push edi
call ebx
pop ecx
lea eax, [eax*2 + 0x409064]
push eax
push edi
lea ecx, [ebp - 0x30]
call fcn.004014d1
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00405ba9
add esp, 0xc
push 1
push 0
lea ecx, [ebp - 0x30]
call fcn.00406637
lea ecx, [ebp - 0x30]
call fcn.0040144a
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040663a
push esi
call ebx
pop ecx
lea eax, [eax*2 + 0x40a0ec]
push eax
push esi
lea ecx, [ebp - 0x9c]
call fcn.004014d1
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040663a
push esi
call ebx
pop ecx
lea eax, [eax*2 + 0x40a0ec]
push eax
push esi
lea ecx, [ebp - 0x6c]
call fcn.004014d1
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp - 0xec]
call fcn.0040663a
push esi
call ebx
pop ecx
lea eax, [eax*2 + 0x40a0ec]
push eax
push esi
lea ecx, [ebp - 0xec]
call fcn.004014d1
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp - 0x11c]
call fcn.0040663a
push esi
call ebx
pop ecx
lea eax, [eax*2 + 0x40a0ec]
push eax
push esi
lea ecx, [ebp - 0x11c]
call fcn.004014d1
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040663a
push esi
call ebx
pop ecx
lea eax, [eax*2 + 0x40a0ec]
push eax
push esi
lea ecx, [ebp - 0xbc]
call fcn.004014d1
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040663a
push esi
call ebx
pop ecx
lea eax, [eax*2 + 0x40a0ec]
push eax
push esi
lea ecx, [ebp - 0x8c]
call fcn.004014d1
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp - 0xac]
call fcn.0040663a
push esi
call ebx
pop ecx
lea eax, [eax*2 + 0x40a0ec]
push eax
push esi
lea ecx, [ebp - 0xac]
call fcn.004014d1
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp - 0xcc]
call fcn.0040663a
push esi
call ebx
pop ecx
lea eax, [eax*2 + 0x40a0ec]
push eax
push esi
lea ecx, [ebp - 0xcc]
call fcn.004014d1
mov edi, dword [ebp + 0xc]
mov al, byte [edi + 0x11]
mov byte [ebp - 0x16], al
mov al, byte [edi + 9]
mov byte [ebp - 0x1e], al
mov al, byte [edi + 0x1b]
mov byte [ebp - 0x15], al
mov al, byte [edi + 0x1a]
mov byte [ebp - 0x17], al
mov al, byte [edi + 0x13]
mov byte [ebp - 0x14], al
mov al, byte [edi + 1]
mov byte [ebp - 0x1f], al
mov al, byte [edi]
mov byte [ebp - 0x18], al
mov al, byte [edi + 0x12]
and byte [ebp - 0x20], 0
mov byte [ebp - 0x1b], al
mov al, byte [edi + 5]
mov byte [ebp - 0x11], al
mov al, byte [edi + 6]
mov byte [ebp - 0x12], al
mov al, byte [edi + 7]
mov byte [ebp - 0x1c], al
mov al, byte [edi + 8]
mov byte [ebp - 0x1a], al
mov al, byte [edi + 0xf]
mov byte [ebp - 0x13], al
mov al, byte [edi + 0x10]
mov byte [ebp - 0x1d], al
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040663a
push esi
call ebx
pop ecx
lea eax, [eax*2 + 0x40a0ec]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.004014d1
and byte [ebp - 0x19], 0
test byte [0x40ae6c], 1
jne 0x40502d
lea edx, [ebp - 0xbc]
mov dword [0x409adc], edx
lea edx, [ebp - 0x8c]
mov dword [0x409ae8], edx
lea edx, [ebp - 0xac]
mov dword [0x409af4], edx
or byte [0x40ae6c], 1
and dword [0x409aa4], 0
and dword [0x409ab0], 0
lea edx, [ebp - 0xcc]
mov dword [0x409b00], edx
and dword [0x409b1c], 0
and dword [0x409b40], 0
and dword [0x409b4c], 0
and dword [0x409b58], 0
and dword [0x409b64], 0
and dword [0x409b7c], 0
lea edx, [ebp - 0x16]
mov dword [0x409b0c], edx
lea edx, [ebp - 0x1e]
mov dword [0x409b18], edx
lea edx, [ebp - 0x18]
mov dword [0x409b24], edx
lea edx, [ebp - 0xec]
mov dword [0x409b30], edx
lea eax, [ebp - 0x1c]
mov dword [0x409aa0], eax
lea edx, [ebp - 0x9c]
mov dword [0x409b3c], edx
lea eax, [ebp - 0x1a]
mov dword [0x409aac], eax
lea edx, [ebp - 0x1b]
mov dword [0x409b48], edx
lea eax, [ebp - 0x1d]
lea edx, [ebp - 0x20]
mov dword [0x409ab8], eax
mov dword [0x409b54], edx
push 1
pop ecx
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x11]
mov dword [0x409ac4], eax
mov dword [0x409b60], edx
lea eax, [ebp - 0x1f]
lea edx, [ebp - 0x12]
push 4
mov dword [0x409ad0], eax
pop eax
mov dword [0x409b6c], edx
lea edx, [ebp - 0x17]
mov dword [0x409aa8], 0x409f40
mov dword [0x409ab4], 0x409f30
mov dword [0x409abc], ecx
mov dword [0x409ac0], 0x409f18
mov dword [0x409ac8], ecx
mov dword [0x409acc], 0x409f04
mov dword [0x409ad4], eax
mov dword [0x409ad8], 0x409eec
mov dword [0x409ae0], eax
mov dword [0x409ae4], 0x409ed0
mov dword [0x409aec], eax
mov dword [0x409af0], 0x409eb4
mov dword [0x409af8], eax
mov dword [0x409afc], 0x409e98
mov dword [0x409b04], ecx
mov dword [0x409b08], 0x409e88
mov dword [0x409b10], ecx
mov dword [0x409b14], 0x409a54
mov dword [0x409b20], 0x409e74
mov dword [0x409b28], eax
mov dword [0x409b2c], 0x409e64
mov dword [0x409b34], eax
mov dword [0x409b38], 0x409080
mov dword [0x409b44], 0x409e50
mov dword [0x409b50], 0x409e40
mov dword [0x409b5c], 0x409e2c
mov dword [0x409b68], 0x409e18
mov dword [0x409b70], ecx
mov dword [0x409b74], 0x409e00
mov dword [0x409b78], edx
mov dword [0x409b80], 0x409df0
and dword [0x409bb8], 0
mov dword [0x409b88], eax
mov dword [0x409b94], ecx
mov dword [0x409ba0], eax
mov dword [0x409bac], eax
lea edx, [ebp - 0x13]
lea ecx, [ebp - 0x15]
lea eax, [ebp - 0x7c]
mov dword [0x409b84], edx
mov dword [0x409b9c], ecx
mov dword [0x409bb4], eax
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x11c]
lea eax, [ebp - 0x19]
mov dword [0x409b8c], 0x409de0
mov dword [0x409b90], edx
mov dword [0x409b98], 0x409dd0
mov dword [0x409ba4], 0x409dc0
mov dword [0x409ba8], ecx
mov dword [0x409bb0], 0x409db0
mov dword [0x409bbc], 0x409da0
mov dword [0x409bc0], eax
and dword [ebp - 0x34], 0
and dword [ebp - 0x38], 0
lea eax, [ebp + 0xf]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040663a
push esi
call ebx
pop ecx
lea eax, [eax*2 + 0x40a0ec]
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.004014d1
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push 2
call fcn.00403849
add esp, 0xc
lea ecx, [ebp - 0x30]
mov byte [ebp + 0xb], al
call fcn.0040144a
cmp byte [ebp + 0xb], 0
jne 0x40508d
lea eax, [ebp - 0x38]
push eax
push 0
push dword [ebp - 0x3c]
call fcn.00407497
add esp, 0xc
mov dword [ebp - 0x34], eax
push 0x19
push 0x409a98
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push str.Launch
call fcn.00405fa1
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x9c]
add esp, 0x18
test eax, 0xfffffffe
je 0x40516a
mov eax, dword [0x40a070]
mov eax, dword [eax]
lea ecx, [ebp - 0x9c]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405de7
lea ecx, [ebp - 0x9c]
add esp, 0xc
cmp eax, ecx
je 0x4050f6
push dword [eax + 4]
lea ecx, [ebp - 0x9c]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406f26
pop ecx
pop ecx
lea ecx, [ebp - 0x9c]
cmp eax, ecx
je 0x40512a
push dword [eax + 4]
lea ecx, [ebp - 0x9c]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
mov esi, dword [0x40a070]
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040733b
add esp, 0xc
cmp eax, esi
je 0x405162
push dword [eax + 4]
mov ecx, esi
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
mov eax, dword [ebp - 0xb8]
sub eax, dword [ebp - 0xbc]
test eax, 0xfffffffe
je 0x40522a
mov eax, dword [0x40a070]
mov eax, dword [eax]
lea ecx, [ebp - 0xbc]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405de7
lea ecx, [ebp - 0xbc]
add esp, 0xc
cmp eax, ecx
je 0x4051b6
push dword [eax + 4]
lea ecx, [ebp - 0xbc]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406f26
pop ecx
pop ecx
lea ecx, [ebp - 0xbc]
cmp eax, ecx
je 0x4051ea
push dword [eax + 4]
lea ecx, [ebp - 0xbc]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
mov esi, dword [0x40a080]
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040733b
add esp, 0xc
cmp eax, esi
je 0x405222
push dword [eax + 4]
mov ecx, esi
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x8c]
test eax, 0xfffffffe
je 0x4052e5
mov eax, dword [0x40a070]
mov eax, dword [eax]
lea ecx, [ebp - 0x8c]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405de7
lea ecx, [ebp - 0x8c]
add esp, 0xc
cmp eax, ecx
je 0x405276
push dword [eax + 4]
lea ecx, [ebp - 0x8c]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406f26
pop ecx
pop ecx
lea ecx, [ebp - 0x8c]
cmp eax, ecx
je 0x4052aa
push dword [eax + 4]
lea ecx, [ebp - 0x8c]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040733b
lea ecx, [edi + 0x24]
add esp, 0xc
cmp eax, ecx
je 0x4052dd
push dword [eax + 4]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
mov eax, dword [ebp - 0xa8]
sub eax, dword [ebp - 0xac]
test eax, 0xfffffffe
je 0x4053af
mov eax, dword [0x40a070]
mov eax, dword [eax]
lea ecx, [ebp - 0xac]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405de7
lea ecx, [ebp - 0xac]
add esp, 0xc
cmp eax, ecx
je 0x405331
push dword [eax + 4]
lea ecx, [ebp - 0xac]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406f26
pop ecx
pop ecx
lea ecx, [ebp - 0xac]
cmp eax, ecx
je 0x405365
push dword [eax + 4]
lea ecx, [ebp - 0xac]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040733b
lea ecx, [edi + 0x34]
add esp, 0xc
cmp eax, ecx
je 0x405398
push dword [eax + 4]
push dword [eax]
call fcn.00401586
push 1
xor esi, esi
push esi
lea ecx, [ebp - 0x30]
call fcn.00406637
lea ecx, [ebp - 0x30]
call fcn.0040144a
jmp 0x4053b1
xor esi, esi
mov eax, dword [ebp - 0xc8]
sub eax, dword [ebp - 0xcc]
test eax, 0xfffffffe
je 0x405477
mov eax, dword [0x40a070]
mov eax, dword [eax]
lea ecx, [ebp - 0xcc]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405de7
lea ecx, [ebp - 0xcc]
add esp, 0xc
cmp eax, ecx
je 0x4053fd
push dword [eax + 4]
lea ecx, [ebp - 0xcc]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406f26
pop ecx
pop ecx
lea ecx, [ebp - 0xcc]
cmp eax, ecx
je 0x405431
push dword [eax + 4]
lea ecx, [ebp - 0xcc]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040733b
lea ecx, [edi + 0x44]
add esp, 0xc
cmp eax, ecx
je 0x405464
push dword [eax + 4]
push dword [eax]
call fcn.00401586
push 1
push esi
lea ecx, [ebp - 0x30]
call fcn.00406637
lea ecx, [ebp - 0x30]
call fcn.0040144a
mov eax, dword [ebp - 0x68]
sub eax, dword [ebp - 0x6c]
test eax, 0xfffffffe
je 0x405503
mov eax, dword [0x40a070]
mov eax, dword [eax]
lea ecx, [ebp - 0x6c]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405de7
lea ecx, [ebp - 0x6c]
add esp, 0xc
cmp eax, ecx
je 0x4054b0
push dword [eax + 4]
lea ecx, [ebp - 0x6c]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00406f26
pop ecx
pop ecx
lea ecx, [ebp - 0x6c]
cmp eax, ecx
je 0x4054db
push dword [eax + 4]
lea ecx, [ebp - 0x6c]
push dword [eax]
call fcn.00401586
push 1
push esi
lea ecx, [ebp - 0x30]
call fcn.00406637
lea ecx, [ebp - 0x30]
call fcn.0040144a
lea ecx, [edi + 0x64]
lea eax, [ebp - 0x6c]
cmp eax, ecx
je 0x405503
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00401586
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0x7c]
test eax, 0xfffffffe
je 0x405584
mov eax, dword [0x40a070]
mov eax, dword [eax]
lea ecx, [ebp - 0x7c]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405de7
lea ecx, [ebp - 0x7c]
add esp, 0xc
cmp eax, ecx
je 0x40553c
push dword [eax + 4]
lea ecx, [ebp - 0x7c]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406f26
pop ecx
pop ecx
lea ecx, [ebp - 0x7c]
cmp eax, ecx
je 0x405567
push dword [eax + 4]
lea ecx, [ebp - 0x7c]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
lea ecx, [edi + 0x74]
lea eax, [ebp - 0x7c]
cmp eax, ecx
je 0x405584
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
call fcn.00401586
mov al, byte [ebp - 0x1c]
cmp al, byte [edi + 7]
je 0x40558f
mov byte [edi + 7], al
mov al, byte [ebp - 0x1a]
cmp al, byte [edi + 8]
je 0x40559a
mov byte [edi + 8], al
mov al, byte [ebp - 0x1d]
cmp al, byte [edi + 0x10]
je 0x4055a5
mov byte [edi + 0x10], al
mov al, byte [ebp - 0x14]
cmp al, byte [edi + 0x13]
je 0x4055b0
mov byte [edi + 0x13], al
mov al, byte [ebp - 0x1f]
cmp al, byte [edi + 1]
je 0x4055bb
mov byte [edi + 1], al
mov al, byte [ebp - 0x16]
cmp al, byte [edi + 0x11]
je 0x4055c6
mov byte [edi + 0x11], al
mov al, byte [ebp - 0x1e]
cmp al, byte [edi + 9]
je 0x4055d1
mov byte [edi + 9], al
mov al, byte [ebp - 0x18]
cmp al, byte [edi]
je 0x4055da
mov byte [edi], al
mov al, byte [ebp - 0x1b]
cmp al, byte [edi + 0x12]
je 0x4055e5
mov byte [edi + 0x12], al
mov al, byte [ebp - 0x11]
cmp al, byte [edi + 5]
je 0x4055f0
mov byte [edi + 5], al
mov al, byte [ebp - 0x12]
cmp al, byte [edi + 6]
je 0x4055fb
mov byte [edi + 6], al
mov al, byte [ebp - 0x13]
cmp al, byte [edi + 0xf]
je 0x405606
mov byte [edi + 0xf], al
mov al, byte [ebp - 0x15]
cmp al, byte [edi + 0x1b]
je 0x405611
mov byte [edi + 0x1b], al
mov al, byte [ebp - 0x17]
cmp al, byte [edi + 0x1a]
je 0x40561c
mov byte [edi + 0x1a], al
cmp byte [edi + 0x13], 0
je 0x405629
and byte [0x40ade9], 0
mov eax, dword [ebp - 0xe8]
sub eax, dword [ebp - 0xec]
test eax, 0xfffffffe
je 0x4056d1
mov esi, 0x409d88
push esi
call ebx
pop ecx
push eax
push 0
push esi
lea ecx, [ebp - 0xec]
call fcn.004039ec
cmp eax, 0xffffffff
mov ecx, dword [0x40a0b8]
jne 0x40567b
lea eax, [ebp - 0xec]
cmp eax, ecx
je 0x40569c
push dword [ebp - 0xe8]
push dword [ebp - 0xec]
jmp 0x405697
push ecx
push 2
mov esi, ecx
push eax
lea ecx, [ebp - 0xec]
call fcn.0040654d
cmp eax, esi
je 0x40569c
push dword [eax + 4]
mov ecx, esi
push dword [eax]
call fcn.00401586
mov eax, dword [0x40a070]
mov esi, dword [0x40a0b8]
mov eax, dword [eax]
push esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405de7
add esp, 0xc
cmp eax, esi
je 0x4056c7
push dword [eax + 4]
mov ecx, esi
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
xor esi, esi
cmp byte [edi + 0x13], 0
jne 0x405a8f
mov al, byte [edi + 6]
mov byte [ebp + 0xb], al
lea eax, [edi + 0x44]
push eax
lea ecx, [ebp - 0x30]
call fcn.004016e4
lea eax, [ebp + 0xb]
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x30]
push 2
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x3c]
mov dword [ebp - 0x134], esi
push dword [ebp - 0x38]
mov dword [ebp - 0x130], 0x409d80
push dword [ebp - 0x34]
mov dword [ebp - 0x128], 4
push str.Filesystem
mov dword [ebp - 0x124], str.Data
call fcn.00405fa1
add esp, 0x18
cmp byte [ebp + 0xb], 0
je 0x405a78
lea eax, [ebp + 0xf]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040663a
mov esi, str.WindowsSystem
push esi
call ebx
pop ecx
lea eax, [eax*2 + str.WindowsSystem]
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.004014d1
lea eax, [ebp + 0xf]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040663a
mov esi, str.Windows
push esi
call ebx
pop ecx
lea eax, [eax*2 + str.Windows]
push eax
push esi
lea ecx, [ebp - 0x5c]
call fcn.004014d1
push 4
pop eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x5c]
push 2
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x38]
mov dword [ebp - 0x148], 0x409d24
push dword [ebp - 0x34]
mov dword [ebp - 0x144], ecx
push str.SpecialFolders
mov dword [ebp - 0x13c], 0x409cfc
call fcn.00405fa1
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
sar ecx, 1
add esp, 0x18
cmp word [eax + ecx*2 - 2], 0x5c
je 0x405808
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.00401800
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401775
lea ecx, [ebp - 0x4c]
add esp, 0xc
cmp eax, ecx
je 0x405830
push dword [eax + 4]
lea ecx, [ebp - 0x4c]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
mov eax, dword [0x40a070]
mov eax, dword [eax]
lea ecx, [ebp - 0x4c]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405de7
lea ecx, [ebp - 0x4c]
add esp, 0xc
cmp eax, ecx
je 0x405864
push dword [eax + 4]
lea ecx, [ebp - 0x4c]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406f26
pop ecx
pop ecx
lea ecx, [ebp - 0x4c]
cmp eax, ecx
je 0x40588f
push dword [eax + 4]
lea ecx, [ebp - 0x4c]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040733b
lea ecx, [ebp - 0x4c]
add esp, 0xc
cmp eax, ecx
je 0x4058c2
push dword [eax + 4]
lea ecx, [ebp - 0x4c]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
add edi, 0x64
push edi
mov esi, 0x409cf8
push esi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.00401648
add esp, 0xc
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401775
add esp, 0xc
cmp eax, edi
je 0x405904
push dword [eax + 4]
mov ecx, edi
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
lea ecx, [ebp - 0xfc]
call fcn.0040144a
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401775
lea ecx, [ebp - 0x5c]
add esp, 0xc
cmp eax, ecx
je 0x40593f
push dword [eax + 4]
lea ecx, [ebp - 0x5c]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
mov eax, dword [0x40a070]
mov eax, dword [eax]
lea ecx, [ebp - 0x5c]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405de7
lea ecx, [ebp - 0x5c]
add esp, 0xc
cmp eax, ecx
je 0x405973
push dword [eax + 4]
lea ecx, [ebp - 0x5c]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406f26
pop ecx
pop ecx
lea ecx, [ebp - 0x5c]
cmp eax, ecx
je 0x40599e
push dword [eax + 4]
lea ecx, [ebp - 0x5c]
push dword [eax]
call fcn.00401586
lea ecx, [ebp - 0x10]
call fcn.0040144a
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.0040733b
lea ecx, [ebp - 0x5c]
add esp, 0xc
cmp eax, ecx
je 0x4059d4
push dword [eax + 4]
lea ecx, [ebp - 0x5c]
push dword [eax]
call fcn.00401586
push 1
xor ebx, ebx
push ebx
lea ecx, [ebp - 0xfc]
call fcn.00406637
lea ecx, [ebp - 0xfc]
call fcn.0040144a
push edi
push esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401648
add esp, 0xc
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.00401775
add esp, 0xc
cmp eax, edi
je 0x405a21
push dword [eax + 4]
mov ecx, edi
push dword [eax]
call fcn.00401586
push 1
pop esi
push esi
push ebx
lea ecx, [ebp - 0xfc]
call fcn.00406637
lea ecx, [ebp - 0xfc]
call fcn.0040144a
push esi
push ebx
lea ecx, [ebp - 0x10]
call fcn.00406637
lea ecx, [ebp - 0x10]
call fcn.0040144a
push esi
push ebx
lea ecx, [ebp - 0x5c]
call fcn.00406637
lea ecx, [ebp - 0x5c]
call fcn.0040144a
push esi
push ebx
lea ecx, [ebp - 0x4c]
call fcn.00406637
lea ecx, [ebp - 0x4c]
call fcn.0040144a
push esi
pop edi
xor esi, esi
jmp 0x405a7b
push 1
pop edi
push edi
push esi
lea ecx, [ebp - 0x30]
call fcn.00406637
lea ecx, [ebp - 0x30]
call fcn.0040144a
jmp 0x405a92
push 1
pop edi
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x34]
cmp eax, esi
je 0x405ac2
cmp byte [ebp - 0x19], 0
je 0x405abb
mov dword [0x40abc4], eax
mov eax, dword [ebp - 0x38]
mov dword [0x40a7b0], eax
jmp 0x405ac2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
lea ecx, [ebp - 0x7c]
call fcn.00406637
lea ecx, [ebp - 0x7c]
call fcn.0040144a
push edi
push esi
lea ecx, [ebp - 0xcc]
call fcn.00406637
lea ecx, [ebp - 0xcc]
call fcn.0040144a
push edi
push esi
lea ecx, [ebp - 0xac]
call fcn.00406637
lea ecx, [ebp - 0xac]
call fcn.0040144a
push edi
push esi
lea ecx, [ebp - 0x8c]
call fcn.00406637
lea ecx, [ebp - 0x8c]
call fcn.0040144a
push edi
push esi
lea ecx, [ebp - 0xbc]
call fcn.00406637
lea ecx, [ebp - 0xbc]
call fcn.0040144a
push edi
push esi
lea ecx, [ebp - 0x11c]
call fcn.00406637
lea ecx, [ebp - 0x11c]
call fcn.0040144a
push edi
push esi
lea ecx, [ebp - 0xec]
call fcn.00406637
lea ecx, [ebp - 0xec]
call fcn.0040144a
push edi
push esi
lea ecx, [ebp - 0x6c]
call fcn.00406637
lea ecx, [ebp - 0x6c]
call fcn.0040144a
push edi
push esi
lea ecx, [ebp - 0x9c]
call fcn.00406637
lea ecx, [ebp - 0x9c]
call fcn.0040144a
lea ecx, [ebp - 0xdc]
call fcn.0040144a
lea ecx, [ebp - 0x10c]
call fcn.0040144a
pop edi
pop esi
pop ebx
leave
ret