Function at 0x417150
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481871
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x4b185c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c8], ecx
mov dword [ebp - 0x1c4], 0
lea ecx, [ebp - 0x120]
call fcn.00416040
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x417279
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x124]
call fcn.0040e440
mov byte [ebp - 4], 1
push 0x48dde0
lea ecx, [ebp - 0x124]
call fcn.00411310
lea ecx, [ebp - 0x13c]
call fcn.0045a4ba
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x124]
call fcn.0040e550
push eax
lea ecx, [ebp - 0x13c]
call fcn.0045a54f
test eax, eax
setne dl
mov byte [ebp - 0x13d], dl
movzx eax, byte [ebp - 0x13d]
test eax, eax
je 0x41725b
lea ecx, [ebp - 0x13c]
call fcn.0045a1be
push str.Seagull_Driver_Automation
lea ecx, [ebp - 0x18c]
call fcn.0040e440
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18c]
push ecx
mov ecx, dword [ebp - 0x1c8]
call fcn.00419c30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18c]
call fcn.0040e4c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.0045a4e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.0040e4c0
push 0
call fcn.00425ed0
add esp, 4
movzx edx, al
test edx, edx
je 0x41747f
push 0x2c
call fcn.00455385
add esp, 4
mov dword [ebp - 0x194], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x194], 0
je 0x4172ea
push 0x48d56b
lea ecx, [ebp - 0x198]
call fcn.0040e440
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c4]
or eax, 1
mov dword [ebp - 0x1c4], eax
lea ecx, [ebp - 0x198]
push ecx
push 0
mov ecx, dword [ebp - 0x194]
call fcn.00425a80
mov dword [ebp - 0x1cc], eax
jmp 0x4172f4
mov dword [ebp - 0x1cc], 0
mov edx, dword [ebp - 0x1cc]
mov dword [ebp - 0x190], edx
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x144], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c4]
and ecx, 1
je 0x417337
and dword [ebp - 0x1c4], 0xfffffffe
lea ecx, [ebp - 0x198]
call fcn.0040e4c0
mov edx, dword [ebp - 0x144]
push edx
mov ecx, dword [ebp - 0x1c8]
call fcn.004161f0
lea ecx, [ebp - 0x158]
call fcn.0045544a
mov byte [ebp - 4], 7
push 0x48de08
lea ecx, [ebp - 0x19c]
call fcn.0040e440
mov byte [ebp - 4], 8
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, dword [ebp - 0x1c8]
call fcn.0041a490
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x19c]
call fcn.0040e4c0
mov dword [ebp - 0x15c], 0
jmp 0x4173af
mov edx, dword [ebp - 0x15c]
add edx, 1
mov dword [ebp - 0x15c], edx
lea ecx, [ebp - 0x158]
call fcn.0043fec0
cmp dword [ebp - 0x15c], eax
jge 0x417470
mov eax, dword [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x158]
call fcn.0040e330
push eax
mov ecx, dword [ebp - 0x1c8]
call fcn.0041a370
mov dword [ebp - 0x164], eax
lea ecx, [ebp - 0x1a0]
push ecx
mov ecx, dword [ebp - 0x164]
call fcn.0041e420
mov dword [ebp - 0x1d0], eax
mov edx, dword [ebp - 0x1d0]
mov dword [ebp - 0x1d4], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x1d4]
push eax
mov ecx, dword [ebp - 0x1c8]
call fcn.0041a370
mov dword [ebp - 0x160], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1a0]
call fcn.0040e4c0
cmp dword [ebp - 0x160], 0
je 0x41746b
mov ecx, dword [ebp - 0x160]
call fcn.0041fa90
movzx ecx, al
test ecx, ecx
je 0x41746b
mov ecx, dword [ebp - 0x144]
call fcn.0041e400
push eax
mov ecx, dword [ebp - 0x160]
call fcn.0041ea20
jmp 0x4173a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x158]
call fcn.00455806
push 1
call fcn.00425ed0
add esp, 4
movzx edx, al
test edx, edx
je 0x417722
push 0x2c
call fcn.00455385
add esp, 4
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x1a8], 0
je 0x4174f0
push 0x48d579
lea ecx, [ebp - 0x1ac]
call fcn.0040e440
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x1c4]
or eax, 2
mov dword [ebp - 0x1c4], eax
lea ecx, [ebp - 0x1ac]
push ecx
push 1
mov ecx, dword [ebp - 0x1a8]
call fcn.00425a80
mov dword [ebp - 0x1d8], eax
jmp 0x4174fa
mov dword [ebp - 0x1d8], 0
mov edx, dword [ebp - 0x1d8]
mov dword [ebp - 0x1a4], edx
mov dword [ebp - 4], 0xc
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x168], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c4]
and ecx, 2
je 0x41753d
and dword [ebp - 0x1c4], 0xfffffffd
lea ecx, [ebp - 0x1ac]
call fcn.0040e4c0
push 0x2c
call fcn.00455385
add esp, 4
mov dword [ebp - 0x1b4], eax
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x1b4], 0
je 0x417599
push 0x48d57a
lea ecx, [ebp - 0x1b8]
call fcn.0040e440
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x1c4]
or edx, 4
mov dword [ebp - 0x1c4], edx
lea eax, [ebp - 0x1b8]
push eax
push 1
mov ecx, dword [ebp - 0x1b4]
call fcn.00425a80
mov dword [ebp - 0x1dc], eax
jmp 0x4175a3
mov dword [ebp - 0x1dc], 0
mov ecx, dword [ebp - 0x1dc]
mov dword [ebp - 0x1b0], ecx
mov dword [ebp - 4], 0xf
mov edx, dword [ebp - 0x1b0]
push edx
mov ecx, dword [ebp - 0x1c8]
call fcn.004161f0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c4]
and eax, 4
je 0x4175ec
and dword [ebp - 0x1c4], 0xfffffffb
lea ecx, [ebp - 0x1b8]
call fcn.0040e4c0
lea ecx, [ebp - 0x17c]
call fcn.0045544a
mov byte [ebp - 4], 0x10
push 0x48de10
lea ecx, [ebp - 0x1bc]
call fcn.0040e440
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x17c]
push ecx
lea edx, [ebp - 0x1bc]
push edx
mov ecx, dword [ebp - 0x1c8]
call fcn.0041a490
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1bc]
call fcn.0040e4c0
mov dword [ebp - 0x180], 0
jmp 0x417652
mov eax, dword [ebp - 0x180]
add eax, 1
mov dword [ebp - 0x180], eax
lea ecx, [ebp - 0x17c]
call fcn.0043fec0
cmp dword [ebp - 0x180], eax
jge 0x417713
mov ecx, dword [ebp - 0x180]
push ecx
lea ecx, [ebp - 0x17c]
call fcn.0040e330
push eax
mov ecx, dword [ebp - 0x1c8]
call fcn.0041a370
mov dword [ebp - 0x188], eax
lea edx, [ebp - 0x1c0]
push edx
mov ecx, dword [ebp - 0x188]
call fcn.0041e420
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x1e4], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x1e4]
push ecx
mov ecx, dword [ebp - 0x1c8]
call fcn.0041a370
mov dword [ebp - 0x184], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1c0]
call fcn.0040e4c0
cmp dword [ebp - 0x184], 0
je 0x41770e
mov ecx, dword [ebp - 0x184]
call fcn.0041fa90
movzx edx, al
test edx, edx
je 0x41770e
mov ecx, dword [ebp - 0x168]
call fcn.0041e400
push eax
mov ecx, dword [ebp - 0x184]
call fcn.0041ea20
jmp 0x417643
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x17c]
call fcn.00455806
mov ecx, dword [ebp - 0x1c8]
call fcn.00417760
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00416090
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046a0d3
mov esp, ebp
pop ebp
ret