Function at 0x403c40
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x42bbd8]
sub esp, 0xc
test eax, eax
push edi
jne 0x4040a7
mov eax, dword [0x42b7b4]
mov edi, dword [0x42b7b0]
test eax, eax
mov dword [esp + 8], 0
mov dword [esp + 4], edi
jbe 0x4040a7
push ebx
push ebp
push esi
jmp 0x403c79
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x1a]
mov ecx, dword [esp + 0x24]
mov esi, eax
shr esi, 0x1b
and esi, 1
mov dword [esp + 0x18], esi
je 0x403c93
cmp ecx, 1
jmp 0x403c96
cmp ecx, 2
je 0x404081
mov ebx, dword [esp + 0x20]
and eax, 0x7000000
cmp eax, ebx
jne 0x404081
mov eax, dword [edi + 0x1e]
test eax, 0x700000
je 0x403d1a
shr eax, 0x14
and eax, 7
dec eax
push eax
call fcn.00403ac0
add esp, 4
test eax, eax
je 0x403d1a
mov eax, dword [edi + 0x1a]
and eax, 0x30000000
cmp eax, 0x30000000
jne 0x404081
push edi
call fcn.0040ee00
mov ecx, dword [0x42b724]
push ecx
call fcn.0041b0a0
add esp, 8
test eax, eax
je 0x404081
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x42b724]
push edx
call fcn.0041b0a0
add esp, 4
jmp 0x404081
cmp ebx, 0x3000000
ja 0x403d5f
je 0x403d6b
cmp ebx, 0x1000000
je 0x403d34
cmp ebx, 0x2000000
jne 0x403d80
mov eax, dword [esp + 0x28]
test eax, eax
je 0x403d52
mov eax, dword [0x42bbdc]
test eax, eax
je 0x403d80
mov eax, dword [edi + 0x1a]
test eax, eax
js 0x404081
jmp 0x403d80
mov eax, dword [edi + 0x1a]
test eax, eax
jns 0x404081
jmp 0x403d80
cmp ebx, 0x4000000
jne 0x403d80
test esi, esi
jne 0x403d80
mov eax, dword [esp + 0x28]
test eax, eax
je 0x403d80
mov eax, dword [0x42bbdc]
test eax, eax
jne 0x404081
test dword [edi + 0x1a], 0x40000000
je 0x403e2c
xor eax, eax
test esi, esi
setne al
add eax, 0x21
push eax
push 7
call fcn.004039a0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403e2c
cmp byte [ebx], 0
je 0x403e2c
push 0
push edi
call fcn.004040b0
mov ebp, eax
push 0x5c
push ebp
call fcn.0041ab20
add esp, 0x10
test eax, eax
je 0x403dcd
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.0041ac70
mov esi, eax
add esp, 4
test esi, esi
je 0x403e24
push ebp
push ebx
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x24
push esi
call fcn.00403960
xor ecx, ecx
cmp eax, 6
sete cl
push esi
mov edi, ecx
call fcn.0041add3
add esp, 0x18
test edi, edi
je 0x40407d
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
push edi
call fcn.0040ee00
add esp, 4
test esi, esi
je 0x403e99
mov edx, dword [0x42b724]
push edx
call fcn.004010a0
add esp, 4
test eax, eax
je 0x404081
mov eax, dword [0x42b724]
push 0x2e
push eax
call fcn.0041ab20
mov esi, eax
add esp, 8
test esi, esi
jne 0x403e6c
mov esi, dword [0x426118]
mov ecx, dword [0x42b720]
mov edx, dword [0x42b724]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov eax, dword [0x42b720]
push esi
push eax
call fcn.00402670
add esp, 8
jmp 0x404081
mov ecx, dword [0x42bbd0]
push ecx
call fcn.004020f0
mov edx, dword [0x42bbd0]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [0x42bbd0]
push eax
call fcn.004020b0
push 8
push edi
call fcn.004040b0
mov esi, eax
add esp, 0xc
mov dword [esp + 0x18], esi
mov ebp, esi
cmp byte [esi], 0
je 0x403efb
push 0xffdc
push esi
push 0
call fcn.0040d550
lea edi, [eax + 1]
push edi
call fcn.0041ac70
mov ebp, eax
push edi
push esi
push ebp
call fcn.0040d550
add esp, 0x1c
mov edx, dword [0x42b724]
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 0x404018
lea ecx, [edx + ebx - 4]
push str..msi
push ecx
call fcn.0041a900
add esp, 8
test eax, eax
jne 0x404012
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.0041ac70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404012
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 0x403f5c
mov edi, dword [0x42b724]
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 0x403fad
xor eax, eax
repne scasb al, byte es:[edi]
mov ax, word [0x426658]
mov word [edi - 1], ax
jmp 0x403fea
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x426654]
dec edi
mov word [edi], cx
mov dl, byte [0x426656]
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 + 0x1a]
shr ecx, 0x1c
and ecx, 1
push ecx
push ebx
push str.msiexec
call fcn.00402be0
push ebx
call fcn.0041add3
mov esi, dword [esp + 0x28]
add esp, 0x10
jmp 0x404030
mov edx, dword [0x42b724]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1a]
shr ecx, 0x1c
and ecx, 1
push ecx
push ebp
push edx
call fcn.00402be0
add esp, 0xc
cmp ebp, esi
je 0x40403d
push ebp
call fcn.0041add3
add esp, 4
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x1a]
and eax, 0x30000000
cmp eax, 0x30000000
jne 0x40407d
mov ecx, dword [0x42b724]
push ecx
call fcn.0041b0a0
add esp, 4
test eax, eax
je 0x40407d
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x42b724]
push edx
call fcn.0041b0a0
add esp, 4
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edi
inc edx
mov dword [esp + 0x18], edx
call fcn.00403c30
mov dword [esp + 0x14], eax
mov eax, dword [0x42b7b4]
add esp, 4
cmp edx, eax
jb 0x403c75
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xc
ret