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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x50b384]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x74], edx
cmp esi, 6
je 0x430f44
cmp esi, 5
je 0x430f44
push 0
push 0x303
push str.._srcprocess_thread_policy.cc
lea ecx, [ebp - 0x100]
call fcn.00444980
add eax, 4
push str.CreateProcessWAction:_STATUS_ACCESS_DENIED
push eax
call fcn.0040afbf
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00444620
mov esi, dword [ebp - 0x64]
mov edi, 8
cmp dword [esi + 0x18], edi
jb 0x430e48
mov esi, dword [esi + 4]
jmp 0x430e4b
add esi, 4
push 0
push 0x304
push str.._srcprocess_thread_policy.cc
lea ecx, [ebp - 0x100]
call fcn.00444980
push esi
add eax, 4
push str.app_name:
push eax
call fcn.0040afbf
add esp, 8
push eax
call fcn.00444140
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00444620
cmp dword [ebx + 0x18], edi
jb 0x430e92
mov esi, dword [ebx + 4]
jmp 0x430e95
lea esi, [ebx + 4]
push 0
push 0x305
push str.._srcprocess_thread_policy.cc
lea ecx, [ebp - 0x100]
call fcn.00444980
push esi
add eax, 4
push str.command_line:
push eax
call fcn.0040afbf
add esp, 8
push eax
call fcn.00444140
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00444620
mov ecx, dword [0x50dd18]
push 0xb
lea eax, [ebp - 0x58]
push eax
call fcn.0040a0e4
push 0
push 0x307
push str.._srcprocess_thread_policy.cc
lea ecx, [ebp - 0x100]
call fcn.00444980
mov ecx, dword [ebp - 0x54]
cmp dword [ebp - 0x40], edi
jae 0x430f05
lea ecx, [ebp - 0x54]
push ecx
add eax, 4
push eax
call fcn.00444140
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00444620
cmp dword [ebp - 0x40], edi
jb 0x430f2e
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.0048e976
add esp, 4
pop edi
pop esi
mov eax, 5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
push 0x40
lea edx, [ebp - 0x140]
push 0
push edx
call fcn.0048f0d0
mov edi, 8
add esp, 0xc
lea eax, [ebx + 4]
mov dword [ebp - 0x144], 0x44
mov dword [ebp - 0x60], eax
cmp dword [ebx + 0x18], edi
jb 0x430f73
mov eax, dword [eax]
push eax
call fcn.00491d23
mov ebx, eax
add esp, 4
xor eax, eax
cmp esi, 6
sete al
and dword [ebp + 0x18], 0xc000420
xor esi, esi
xor ecx, ecx
push esi
mov word [ebp - 0x1c], cx
push 0x105
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x70], eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], esi
call fcn.0040d213
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], edi
jae 0x430fbe
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, esi
je 0x431251
cmp eax, dword [ebp - 0xc]
ja 0x431251
push esi
xor eax, eax
push 0x105
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], esi
mov word [ebp - 0x38], ax
call fcn.0040d213
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x24], edi
jae 0x431003
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
je 0x431217
cmp eax, dword [ebp - 0x28]
ja 0x431217
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x24], edi
jae 0x43102a
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x43104a
lea ecx, [ebp - 0x3c]
call fcn.0040199c
lea ecx, [ebp - 0x20]
call fcn.0040199c
jmp 0x431272
mov ecx, dword [ebp - 0x38]
cmp dword [ebp - 0x24], edi
jae 0x431055
lea ecx, [ebp - 0x38]
mov ebx, dword [ebp - 0x64]
cmp dword [ebx + 0x18], edi
jb 0x431065
mov eax, dword [ebx + 4]
add ebx, 4
jmp 0x43106a
add ebx, 4
mov eax, ebx
mov edx, dword [ebp - 0x74]
push edx
lea edx, [ebp - 0x144]
push edx
mov edx, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x18]
push 0
push ecx
mov ecx, dword [ebp - 0x5c]
push edx
mov edx, dword [ebp - 0x70]
push 0
push 0
push ecx
push eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push edx
push ecx
push eax
call fcn.00430cd0
add esp, 0x34
mov esi, eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], edi
jae 0x4310a9
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test esi, esi
jne 0x431201
push esi
push 0x339
push str.._srcprocess_thread_policy.cc
lea ecx, [ebp - 0x100]
call fcn.00444980
add eax, 4
push str.CreateProcessWAction:_STATUS_ACCESS_DENIED
push eax
call fcn.0040afbf
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00444620
mov edx, dword [ebp - 0x64]
cmp dword [edx + 0x18], edi
jb 0x4310f6
mov esi, dword [ebx]
jmp 0x4310f8
mov esi, ebx
push 0
push 0x33a
push str.._srcprocess_thread_policy.cc
lea ecx, [ebp - 0x100]
call fcn.00444980
push esi
add eax, 4
push str.app_name:
push eax
call fcn.0040afbf
add esp, 8
push eax
call fcn.00444140
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00444620
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0x18], edi
jb 0x431144
mov ecx, dword [ebp - 0x60]
mov esi, dword [ecx]
jmp 0x431147
mov esi, dword [ebp - 0x60]
push 0
push 0x33b
push str.._srcprocess_thread_policy.cc
lea ecx, [ebp - 0x100]
call fcn.00444980
push esi
add eax, 4
push str.command_line:
push eax
call fcn.0040afbf
add esp, 8
push eax
call fcn.00444140
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00444620
mov ecx, dword [0x50dd18]
push 0xb
lea edx, [ebp - 0x58]
push edx
call fcn.0040a0e4
push 0
push 0x33d
push str.._srcprocess_thread_policy.cc
lea ecx, [ebp - 0x100]
call fcn.00444980
lea ecx, [ebp - 0x58]
push ecx
add eax, 4
push eax
call fcn.00429060
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00444620
lea ecx, [ebp - 0x58]
call fcn.0040199c
lea ecx, [ebp - 0x3c]
call fcn.0040199c
lea ecx, [ebp - 0x20]
call fcn.0040199c
mov edx, dword [ebp - 0x5c]
push edx
call fcn.00490d9c
add esp, 4
pop edi
pop esi
mov eax, 5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x3c]
call fcn.0040199c
lea ecx, [ebp - 0x20]
call fcn.0040199c
mov eax, dword [ebp - 0x5c]
push eax
jmp 0x431273
cmp dword [ebp - 0x24], edi
jb 0x431228
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0048e976
add esp, 4
xor edx, edx
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], esi
mov word [ebp - 0x38], dx
cmp dword [ebp - 8], edi
jb 0x431249
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0048e976
add esp, 4
xor ecx, ecx
mov word [ebp - 0x1c], cx
jmp 0x431268
cmp dword [ebp - 8], edi
jb 0x431262
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0048e976
add esp, 4
xor eax, eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 7
push ebx
call fcn.00490d9c
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret