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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x509354]
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 0x430794
cmp esi, 5
je 0x430794
push 0
push 0x303
push str.._srcprocess_thread_policy.cc
lea ecx, [ebp - 0x100]
call fcn.004440f0
add eax, 4
push str.CreateProcessWAction:_STATUS_ACCESS_DENIED
push eax
call fcn.0040afde
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00443d90
mov esi, dword [ebp - 0x64]
mov edi, 8
cmp dword [esi + 0x18], edi
jb 0x430698
mov esi, dword [esi + 4]
jmp 0x43069b
add esi, 4
push 0
push 0x304
push str.._srcprocess_thread_policy.cc
lea ecx, [ebp - 0x100]
call fcn.004440f0
push esi
add eax, 4
push str.app_name:
push eax
call fcn.0040afde
add esp, 8
push eax
call fcn.004438b0
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00443d90
cmp dword [ebx + 0x18], edi
jb 0x4306e2
mov esi, dword [ebx + 4]
jmp 0x4306e5
lea esi, [ebx + 4]
push 0
push 0x305
push str.._srcprocess_thread_policy.cc
lea ecx, [ebp - 0x100]
call fcn.004440f0
push esi
add eax, 4
push str.command_line:
push eax
call fcn.0040afde
add esp, 8
push eax
call fcn.004438b0
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00443d90
mov ecx, dword [0x50bcf8]
push 0xb
lea eax, [ebp - 0x58]
push eax
call fcn.0040a181
push 0
push 0x307
push str.._srcprocess_thread_policy.cc
lea ecx, [ebp - 0x100]
call fcn.004440f0
mov ecx, dword [ebp - 0x54]
cmp dword [ebp - 0x40], edi
jae 0x430755
lea ecx, [ebp - 0x54]
push ecx
add eax, 4
push eax
call fcn.004438b0
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00443d90
cmp dword [ebp - 0x40], edi
jb 0x43077e
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.0048e006
add esp, 4
pop edi
pop esi
mov eax, 5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e25d
mov esp, ebp
pop ebp
ret
push 0x40
lea edx, [ebp - 0x140]
push 0
push edx
call fcn.0048e760
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 0x4307c3
mov eax, dword [eax]
push eax
call fcn.004913b3
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.0040d1c3
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], edi
jae 0x43080e
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, esi
je 0x430aa1
cmp eax, dword [ebp - 0xc]
ja 0x430aa1
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.0040d1c3
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x24], edi
jae 0x430853
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
je 0x430a67
cmp eax, dword [ebp - 0x28]
ja 0x430a67
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x24], edi
jae 0x43087a
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x43089a
lea ecx, [ebp - 0x3c]
call fcn.0040198e
lea ecx, [ebp - 0x20]
call fcn.0040198e
jmp 0x430ac2
mov ecx, dword [ebp - 0x38]
cmp dword [ebp - 0x24], edi
jae 0x4308a5
lea ecx, [ebp - 0x38]
mov ebx, dword [ebp - 0x64]
cmp dword [ebx + 0x18], edi
jb 0x4308b5
mov eax, dword [ebx + 4]
add ebx, 4
jmp 0x4308ba
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.00430520
add esp, 0x34
mov esi, eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 8], edi
jae 0x4308f9
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test esi, esi
jne 0x430a51
push esi
push 0x339
push str.._srcprocess_thread_policy.cc
lea ecx, [ebp - 0x100]
call fcn.004440f0
add eax, 4
push str.CreateProcessWAction:_STATUS_ACCESS_DENIED
push eax
call fcn.0040afde
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00443d90
mov edx, dword [ebp - 0x64]
cmp dword [edx + 0x18], edi
jb 0x430946
mov esi, dword [ebx]
jmp 0x430948
mov esi, ebx
push 0
push 0x33a
push str.._srcprocess_thread_policy.cc
lea ecx, [ebp - 0x100]
call fcn.004440f0
push esi
add eax, 4
push str.app_name:
push eax
call fcn.0040afde
add esp, 8
push eax
call fcn.004438b0
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00443d90
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0x18], edi
jb 0x430994
mov ecx, dword [ebp - 0x60]
mov esi, dword [ecx]
jmp 0x430997
mov esi, dword [ebp - 0x60]
push 0
push 0x33b
push str.._srcprocess_thread_policy.cc
lea ecx, [ebp - 0x100]
call fcn.004440f0
push esi
add eax, 4
push str.command_line:
push eax
call fcn.0040afde
add esp, 8
push eax
call fcn.004438b0
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00443d90
mov ecx, dword [0x50bcf8]
push 0xb
lea edx, [ebp - 0x58]
push edx
call fcn.0040a181
push 0
push 0x33d
push str.._srcprocess_thread_policy.cc
lea ecx, [ebp - 0x100]
call fcn.004440f0
lea ecx, [ebp - 0x58]
push ecx
add eax, 4
push eax
call fcn.004288e0
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.00443d90
lea ecx, [ebp - 0x58]
call fcn.0040198e
lea ecx, [ebp - 0x3c]
call fcn.0040198e
lea ecx, [ebp - 0x20]
call fcn.0040198e
mov edx, dword [ebp - 0x5c]
push edx
call fcn.0049042c
add esp, 4
pop edi
pop esi
mov eax, 5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e25d
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x3c]
call fcn.0040198e
lea ecx, [ebp - 0x20]
call fcn.0040198e
mov eax, dword [ebp - 0x5c]
push eax
jmp 0x430ac3
cmp dword [ebp - 0x24], edi
jb 0x430a78
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0048e006
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 0x430a99
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0048e006
add esp, 4
xor ecx, ecx
mov word [ebp - 0x1c], cx
jmp 0x430ab8
cmp dword [ebp - 8], edi
jb 0x430ab2
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0048e006
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.0049042c
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0048e25d
mov esp, ebp
pop ebp
ret