Function at 0x409b90
Capabilities:
Set current directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471efe
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x280
mov eax, dword [0x491130]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov ecx, str._nodel
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x28c], eax
call fcn.00403950
mov ecx, str._app
call fcn.00403950
mov ecx, str._params
mov byte [ebp - 0x282], al
call fcn.00403950
mov ecx, str._skipParams
mov byte [ebp - 0x281], al
call fcn.00403950
mov ecx, str._LeaveBehind
mov byte [ebp - 0x283], al
call fcn.00403950
xorps xmm0, xmm0
mov byte [esi + 0x18], al
movups xmmword [ebp - 0x268], xmm0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0xf
mov byte [ebp - 0x268], 0
push 0x104
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 0
movups xmmword [ebp - 0x238], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409c90
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.0040ae60
lea edx, [ebp - 0x238]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.0040baa0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x224]
cmp ecx, 8
jb 0x409d0b
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409d01
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a24d
push ecx
push edx
call fcn.0044b9a2
add esp, 8
cmp dword [ebp - 0x270], 0
je 0x409fde
mov al, byte [0x4862ac]
xorps xmm0, xmm0
movups xmmword [ebp - 0x238], xmm0
mov dword [ebp - 0x228], 9
movq xmm0, qword [str.CompanyId]
mov dword [ebp - 0x224], 0xf
movq qword [ebp - 0x238], xmm0
mov byte [ebp - 0x230], al
mov byte [ebp - 0x22f], 0
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x280]
lea ecx, [ebp - 0x250]
call fcn.00403a10
mov edi, eax
add esp, 4
lea eax, [ebp - 0x268]
cmp eax, edi
je 0x409e00
mov ecx, dword [ebp - 0x254]
cmp ecx, 0x10
jb 0x409dbd
mov edx, dword [ebp - 0x268]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409db3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a23e
push ecx
push edx
call fcn.0044b9a2
add esp, 8
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0xf
mov byte [ebp - 0x268], 0
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x268], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x258], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ecx, dword [ebp - 0x23c]
cmp ecx, 0x10
jb 0x409e3a
mov edx, dword [ebp - 0x250]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409e30
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a23e
push ecx
push edx
call fcn.0044b9a2
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0xf
mov byte [ebp - 0x250], 0
cmp ecx, 0x10
jb 0x409e93
mov edx, dword [ebp - 0x238]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409e89
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a23e
push ecx
push edx
call fcn.0044b9a2
add esp, 8
cmp byte [esi + 0x18], 0
jne 0x409f22
mov ax, word [0x4862b8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x238], xmm0
mov word [ebp - 0x230], ax
movq xmm0, qword [str.LeaveBehind]
mov al, byte [0x4862ba]
mov dword [ebp - 0x228], 0xb
mov dword [ebp - 0x224], 0xf
movq qword [ebp - 0x238], xmm0
mov byte [ebp - 0x22e], al
mov byte [ebp - 0x22d], 0
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x280]
mov dword [ebp - 0x28c], 1
lea ecx, [ebp - 0x250]
call fcn.00403a10
add esp, 4
mov ecx, 3
cmp dword [eax + 0x10], 0
jne 0x409f28
xor al, al
jmp 0x409f2a
mov ecx, dword [ebp - 0x288]
mov al, 1
mov byte [esi + 0x18], al
test cl, 2
je 0x409f98
mov eax, dword [ebp - 0x23c]
and ecx, 0xfffffffd
mov dword [ebp - 0x288], ecx
cmp eax, 0x10
jb 0x409f7d
mov edx, dword [ebp - 0x250]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x409f6d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a243
push ecx
push edx
call fcn.0044b9a2
mov ecx, dword [ebp - 0x288]
add esp, 8
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0xf
mov byte [ebp - 0x250], 0
mov dword [ebp - 4], 3
test cl, 1
je 0x409fde
mov ecx, dword [ebp - 0x224]
cmp ecx, 0x10
jb 0x409fde
mov edx, dword [ebp - 0x238]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409fd4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a243
push ecx
push edx
call fcn.0044b9a2
add esp, 8
cmp byte [ebp - 0x282], 0
je 0x409fec
call fcn.0040a470
mov al, byte [ebp - 0x281]
test al, al
je 0x40a002
push ecx
call fcn.0040a4d0
mov al, byte [ebp - 0x281]
cmp byte [ebp - 0x282], 0
jne 0x40a18f
test al, al
jne 0x40a18f
mov edx, esi
mov ecx, str._destination
call fcn.00403990
test al, al
je 0x40a095
mov edx, esi
mov ecx, 0x4862d8
call fcn.00403990
test al, al
je 0x40a095
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x40a041
mov ecx, dword [esi]
call fcn.0040dcc0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40a050
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esi + 0x14], 8
jb 0x40a05f
mov esi, dword [esi]
mov ecx, esi
call fcn.00403d70
call fcn.0040a470
cmp byte [ebp - 0x283], 0
jne 0x40a18f
cmp dword [ebp - 0x270], 0
je 0x40a189
lea ecx, [ebp - 0x280]
call fcn.00403e30
jmp 0x40a18f
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x238]
call fcn.0040e270
push eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x250]
mov cl, byte [esi + 0x18]
push ecx
push eax
call fcn.0040a4e0
push eax
mov ecx, esi
call fcn.0040a900
mov ecx, dword [ebp - 0x23c]
cmp ecx, 8
jb 0x40a103
mov edx, dword [ebp - 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a0f9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a248
push ecx
push edx
call fcn.0044b9a2
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
cmp ecx, 8
jb 0x40a164
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a15a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a248
push ecx
push edx
call fcn.0044b9a2
add esp, 8
cmp dword [esi + 0x10], 0
jne 0x40a046
push str.Failed_to_determine_working_directory.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403630
add esp, 8
mov esi, 1
jmp 0x40a191
push ecx
call fcn.0040a4d0
xor esi, esi
mov ecx, dword [ebp - 0x26c]
cmp ecx, 0x10
jb 0x40a1cb
mov edx, dword [ebp - 0x280]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a1c1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a24d
push ecx
push edx
call fcn.0044b9a2
add esp, 8
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0xf
mov byte [ebp - 0x280], 0
cmp ecx, 0x10
jb 0x40a21c
mov edx, dword [ebp - 0x268]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a212
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a24d
push ecx
push edx
call fcn.0044b9a2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044b98f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.00451171
call fcn.00451171
call fcn.00451171
call fcn.00451171
int3