Function at 0x403ab0
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x429af0]
sub esp, 0xc
test eax, eax
jne 0x403ea5
mov eax, dword [0x429708]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [0x42970c]
test eax, eax
jbe 0x403ea5
push ebx
push ebp
push esi
push edi
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 8]
mov edi, ecx
shr edi, 0x1b
and edi, 1
mov dword [esp + 0x18], edi
je 0x403b00
cmp eax, 1
jmp 0x403b03
cmp eax, 2
je 0x403e7a
mov eax, dword [esp + 0x20]
mov edx, ecx
and edx, 0x7000000
cmp edx, eax
jne 0x403e7a
cmp eax, 0x3000000
ja 0x403b59
je 0x403b64
cmp eax, 0x1000000
je 0x403b34
cmp eax, 0x2000000
jne 0x403b79
mov eax, dword [esp + 0x28]
test eax, eax
je 0x403b4f
mov eax, dword [0x429af4]
test eax, eax
je 0x403b79
test ecx, ecx
js 0x403e7a
jmp 0x403b79
test ecx, ecx
jns 0x403e7a
jmp 0x403b79
cmp eax, 0x4000000
jne 0x403b79
test edi, edi
jne 0x403b79
mov eax, dword [esp + 0x28]
test eax, eax
je 0x403b79
mov eax, dword [0x429af4]
test eax, eax
jne 0x403e7a
test ecx, 0x40000000
je 0x403c1c
xor eax, eax
test edi, edi
setne al
add eax, 0x21
push eax
push 7
call fcn.00403990
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403c1c
cmp byte [ebx], 0
je 0x403c1c
push 0
push esi
call fcn.00403eb0
mov ebp, eax
push 0x5c
push ebp
call fcn.00418f90
add esp, 0x10
test eax, eax
je 0x403bc1
lea ebp, [eax + 1]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
push eax
call fcn.004190e0
mov esi, eax
add esp, 4
test esi, esi
je 0x403c18
push ebp
push ebx
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x24
push esi
call fcn.00403950
xor ecx, ecx
cmp eax, 6
sete cl
push esi
mov edi, ecx
call fcn.00419243
add esp, 0x18
test edi, edi
je 0x403e7a
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push esi
call fcn.0040d520
add esp, 4
test edi, edi
je 0x403c96
mov edx, dword [0x429680]
push 0
push edx
call fcn.00401100
add esp, 8
cmp eax, 0xffffffff
je 0x403e7a
push eax
call fcn.00401380
mov eax, dword [0x429680]
push 0x2e
push eax
call fcn.00418f90
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x403c69
mov edi, dword [0x4242d8]
mov ecx, dword [0x42967c]
mov edx, dword [0x429680]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov eax, dword [0x42967c]
push edi
push eax
call fcn.00402690
add esp, 8
jmp 0x403e7a
mov ecx, dword [0x429ae8]
push ecx
call fcn.00402110
mov edx, dword [0x429ae8]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [0x429ae8]
push eax
call fcn.004020d0
push 8
push esi
call fcn.00403eb0
mov esi, eax
add esp, 0xc
mov dword [esp + 0x18], esi
mov ebp, esi
cmp byte [esi], 0
je 0x403cf8
push 0xffdc
push esi
push 0
call fcn.0040be70
lea edi, [eax + 1]
push edi
call fcn.004190e0
mov ebp, eax
push edi
push esi
push ebp
call fcn.0040be70
add esp, 0x1c
mov edx, dword [0x429680]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
cmp ebx, 3
jle 0x403e15
lea ecx, [edx + ebx - 4]
push str..msi
push ecx
call fcn.00418d70
add esp, 8
test eax, eax
jne 0x403e0f
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ecx + ebx + 7]
push edx
call fcn.004190e0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403e0f
mov eax, str._i__
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403d59
mov edi, dword [0x429680]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebp]
or ecx, 0xffffffff
test al, al
mov edi, ebx
jne 0x403daa
xor eax, eax
repne scasb al, byte es:[edi]
mov ax, word [0x424604]
mov word [edi - 1], ax
jmp 0x403de7
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x424600]
dec edi
mov word [edi], cx
mov dl, byte [0x424602]
or ecx, 0xffffffff
mov byte [edi + 2], dl
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
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 + 0x10]
mov ecx, dword [eax + 8]
shr ecx, 0x1c
and ecx, 1
push ecx
push ebx
push str.msiexec
call fcn.00402bd0
push ebx
call fcn.00419243
mov esi, dword [esp + 0x28]
add esp, 0x10
jmp 0x403e2d
mov edx, dword [0x429680]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
shr ecx, 0x1c
and ecx, 1
push ecx
push ebp
push edx
call fcn.00402bd0
add esp, 0xc
cmp ebp, esi
je 0x403e3a
push ebp
call fcn.00419243
add esp, 4
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
and eax, 0x30000000
cmp eax, 0x30000000
jne 0x403e7a
mov ecx, dword [0x429680]
push ecx
call fcn.00419510
add esp, 4
test eax, eax
je 0x403e7a
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x429680]
push edx
call fcn.00419510
add esp, 4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc edx
push eax
mov dword [esp + 0x18], edx
call fcn.00403aa0
mov dword [esp + 0x14], eax
mov eax, dword [0x42970c]
add esp, 4
cmp edx, eax
jb 0x403ae2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret