Function at 0x403440
Capabilities:
Get common file path

Disassembly:
sub esp, 0x620
push ebx
mov ebx, dword [esp + 0x628]
push ebp
mov ebp, dword [esp + 0x630]
push esi
xor eax, eax
test ebp, ebp
push edi
jle 0x40346b
mov edi, edi
cmp byte [eax + ebx], 0x23
je 0x40346b
inc eax
cmp eax, ebp
jl 0x403460
lea edx, [eax + 1]
cmp edx, ebp
mov eax, edx
jge 0x40347f
cmp byte [eax + ebx], 0x23
je 0x40347f
inc eax
cmp eax, ebp
jl 0x403474
xor ecx, ecx
mov dword [0x4ac7a8], ecx
mov dword [0x4ac7ac], ecx
mov dword [0x4ac7b0], ecx
mov dword [0x4ac7b4], ecx
mov dword [0x4ac7b8], ecx
mov dword [0x4ac7bc], ecx
mov dword [0x4ac7c0], ecx
mov dword [0x4ac7c4], ecx
mov ecx, eax
sub ecx, edx
lea esi, [edx + ebx]
mov edx, ecx
shr ecx, 2
mov edi, 0x4ac7a8
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [eax + 1]
and ecx, 3
cmp edx, ebp
rep movsb byte es:[edi], byte [esi]
mov eax, edx
jge 0x4034df
cmp byte [eax + ebx], 0x23
je 0x4034df
inc eax
cmp eax, ebp
jl 0x4034d4
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov ecx, eax
sub ecx, edx
lea esi, [edx + ebx]
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [eax + 1]
lea eax, [esp + 0x10]
push eax
call fcn.0044e1d6
add esp, 4
cmp esi, ebp
mov dword [0x5030dc], eax
mov eax, esi
jge 0x403540
cmp byte [eax + ebx], 0x23
je 0x403540
inc eax
cmp eax, ebp
jl 0x403535
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov ecx, eax
sub ecx, esi
mov edx, ecx
shr ecx, 2
add esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [eax + 1]
lea eax, [esp + 0x10]
push eax
call fcn.0044e1d6
mov ecx, dword [0x5030dc]
push eax
push ecx
push 0x4ac7a8
lea edx, [esp + 0x240]
push str.SSLTray:_ExtendCommand_hookVersion_is__s_hookFileLen_is__d_hookConfig_is__d
push edx
mov dword [0x49f268], eax
call fcn.0044dd9b
lea eax, [esp + 0x248]
push eax
call fcn.00402a90
add esp, 0x1c
cmp esi, ebp
mov edx, esi
jge 0x4035cc
cmp byte [edx + ebx], 0x23
je 0x4035cc
inc edx
cmp edx, ebp
jl 0x4035c1
xor eax, eax
mov ecx, 0x40
mov edi, 0x4acbc8
rep stosd dword es:[edi], eax
mov ecx, edx
sub ecx, esi
mov eax, ecx
shr ecx, 2
add esi, ebx
mov edi, 0x4acbc8
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [edx + 1]
cmp eax, ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
jge 0x40360b
lea esp, [esp]
cmp byte [ecx + ebx], 0x23
je 0x40360b
inc ecx
cmp ecx, ebp
jl 0x403600
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
sub ecx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
lea esi, [eax + ebx]
mov eax, ecx
shr ecx, 2
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call fcn.0044e1d6
push eax
push 0x4acbc8
lea edx, [esp + 0x23c]
push str.SSLTray:_ExtendCommand_icmpName_is__s_icmpFileLen_is__d
push edx
mov dword [0x5030e0], eax
call fcn.0044dd9b
lea eax, [esp + 0x244]
push eax
call fcn.00402a90
add esp, 0x18
push 0x200
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x30]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403691
mov edi, 0x4accd0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4036a2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4accd0
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4036c0
mov dx, word [0x47a898]
mov eax, 0x4acbc8
mov word [edi], dx
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4036e0
mov edi, 0x4accd0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4036f1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x620
ret