Function at 0x101b2bd0
Capabilities:
Get common file path
Terminate process

Disassembly:
sub esp, 0x250
push ebx
push ebp
push esi
xor eax, eax
push edi
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push 0x200
push eax
mov byte [esp + 0x1f], 0
call fcn.101b2960
mov ebp, dword [esp + 0x278]
mov ecx, dword [ebp]
mov ebx, dword [esp + 0x27c]
add esp, 0xc
cmp ecx, 2
jl 0x101b2cb7
mov edx, dword [ebx]
mov esi, dword [edx + 4]
mov edi, str.__no_defaults
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x101b2c44
test al, al
je 0x101b2c40
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x101b2c44
add esi, 2
add edi, 2
test al, al
jne 0x101b2c20
xor eax, eax
jmp 0x101b2c49
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x101b2cb7
lea eax, [ecx*4 + 0x24]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.101b29c0
add esp, 8
test eax, eax
je 0x101b2e93
mov ecx, dword [ebx]
mov ecx, dword [ecx]
lea edx, [eax + 0x20]
mov dword [edx], ecx
mov esi, dword [ebp]
mov ecx, 2
cmp esi, ecx
jbe 0x101b2c90
mov esi, dword [ebx]
mov esi, dword [esi + ecx*4]
mov dword [edx + ecx*4 - 4], esi
mov esi, dword [ebp]
inc ecx
cmp ecx, esi
jb 0x101b2c7f
mov dword [edx + ecx*4 - 4], 0
dec dword [ebp]
mov edi, eax
mov dword [ebx], edx
mov ecx, 8
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x250
ret
xor esi, esi
cmp ecx, 2
jl 0x101b2d1f
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push str.__defaults_file
push eax
call fcn.101b6030
add esp, 8
test eax, eax
je 0x101b2cea
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push 0x3d
push edx
call fcn.1019d7f0
mov esi, eax
add esp, 8
inc esi
jmp 0x101b2d17
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push str.__defaults_extra_file
push ecx
call fcn.101b6030
add esp, 8
test eax, eax
je 0x101b2d1f
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push 0x3d
push eax
call fcn.1019d7f0
add esp, 8
inc eax
mov dword [0x10477c5c], eax
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x268]
mov edx, dword [eax]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], str.defaults
mov dword [esp + 0x24], eax
je 0x101b2d4d
mov edx, dword [eax + 4]
add eax, 4
inc ecx
test edx, edx
jne 0x101b2d3e
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp]
push 0x20
push ecx
lea edx, [esp + 0x30]
push 4
push edx
call fcn.101b36b0
add esp, 0x10
test al, al
jne 0x101b2e93
test esi, esi
je 0x101b2da1
lea eax, [esp + 0x1c]
push eax
push 0x10422d84
push esi
push 0x10422d84
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.101b3020
add esp, 0x18
test eax, eax
mov dword [esp + 0x14], eax
jl 0x101b2e93
jmp 0x101b2e6d
mov edi, dword [esp + 0x264]
push edi
call fcn.101b5f50
add esp, 4
test eax, eax
je 0x101b2dc4
lea eax, [esp + 0x1c]
push eax
push str..cnf
push edi
push 0
jmp 0x101b2d7e
push 0x200
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x1c]
push ecx
push str..ini
push edi
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.101b3020
add esp, 0x18
test eax, eax
jne 0x101b2e93
mov eax, dword [0x1037710c]
test eax, eax
mov esi, 0x1037710c
je 0x101b2e6d
mov eax, dword [esi]
cmp byte [eax], 0
je 0x101b2e37
lea edx, [esp + 0x1c]
push edx
push str..cnf
push edi
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.101b3020
add esp, 0x18
test eax, eax
jl 0x101b2e93
jmp 0x101b2e63
mov eax, dword [0x10477c5c]
test eax, eax
je 0x101b2e63
lea edx, [esp + 0x1c]
push edx
push str..cnf
push eax
push 0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.101b3020
add esp, 0x18
test eax, eax
jl 0x101b2e93
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x101b2e0c
mov eax, dword [esp + 0x2c]
mov edx, dword [ebp]
add edx, eax
lea eax, [edx*4 + 0x24]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.101b29c0
add esp, 8
test eax, eax
mov dword [esp + 0x3c], eax
jne 0x101b2eac
push str.Fatal_error_in_defaults_handling._Program_aborted_n
push 0x10372800
call fcn.1019d201
add esp, 8
push 1
call fcn.101a0384
lea edx, [eax + 0x20]
mov eax, dword [ebx]
mov ecx, dword [eax]
mov eax, dword [esp + 0x18]
mov dword [edx], ecx
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
lea edi, [edx + 4]
rep movsd dword es:[edi], dword [esi]
sub dword [ebp], eax
mov edi, dword [ebx]
shl eax, 2
add edi, eax
mov dword [ebx], edi
mov eax, dword [ebp]
cmp eax, 2
mov ecx, edi
jl 0x101b2f24
mov esi, dword [ecx + 4]
mov edi, str.__print_defaults
mov cl, byte [esi]
mov al, cl
cmp cl, byte [edi]
jne 0x101b2f08
test al, al
je 0x101b2f04
mov cl, byte [esi + 1]
mov al, cl
cmp cl, byte [edi + 1]
jne 0x101b2f08
add esi, 2
add edi, 2
test al, al
jne 0x101b2ee4
xor eax, eax
jmp 0x101b2f0d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x101b2f24
mov eax, dword [ebp]
dec eax
mov dword [ebp], eax
mov eax, dword [ebx]
add eax, 4
mov byte [esp + 0x13], 1
mov dword [ebx], eax
mov eax, dword [ebp]
test eax, eax
je 0x101b2f4d
mov esi, dword [ebx]
lea ecx, [eax*4 - 4]
mov eax, dword [esp + 0x2c]
lea edi, [edx + eax*4 + 4]
mov eax, ecx
shr ecx, 2
add esi, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
add ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x3c]
mov dword [edx + ecx*4], 0
mov esi, dword [ebp]
mov eax, dword [esp + 0x2c]
add esi, eax
mov dword [ebp], esi
mov dword [ebx], edx
mov ecx, 8
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x28]
push ecx
call fcn.101b37c0
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x101b2fda
mov edx, dword [ebx]
mov eax, dword [edx]
push eax
push str._s_would_have_been_started_with_the_following_arguments:_n
call fcn.1019ecad
mov eax, dword [ebp]
mov esi, 1
add esp, 8
cmp eax, esi
jle 0x101b2fc6
mov ecx, dword [ebx]
mov edx, dword [ecx + esi*4]
push edx
push 0x1037711c
call fcn.1019ecad
mov eax, dword [ebp]
add esp, 8
inc esi
cmp esi, eax
jl 0x101b2fab
push 0x10422d84
call fcn.101c1cb8
add esp, 4
push 0
call fcn.101a0384
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x250
ret