Function at 0x410b40
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x640
push esi
push edi
xor eax, eax
mov byte [esp + 0x48], 0
mov ecx, 0x7f
lea edi, [esp + 0x49]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x26
lea eax, [esp + 0x50]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [esp + 0x48]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410b80
mov ecx, dword [0x47a868]
mov dx, word [0x47a86c]
mov dword [edi], ecx
mov eax, 0x4acdd0
mov word [edi + 4], dx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410ba2
lea edi, [esp + 0x48]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410bb0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov byte [esp + 0x248], 0
mov ecx, 0xff
lea edi, [esp + 0x249]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x24c]
push str.SSLTray:_getSCBFromGate_path_is__s.
push ecx
call fcn.0044dd9b
lea edx, [esp + 0x254]
push edx
call fcn.00402a90
lea eax, [esp + 0x58]
push 0x47a858
push eax
call fcn.0044dd88
mov esi, eax
add esp, 0x18
test esi, esi
je 0x410c75
push 2
push 0
push esi
call fcn.0044e4f6
push esi
call fcn.0044e426
push esi
mov edi, eax
call fcn.0044dc7d
mov ecx, dword [0x5030e4]
push ecx
push edi
lea edx, [esp + 0x264]
push str.SSLTray:_getSCBFromGate_len_is__d_and_scbFileLen_is__d.
push edx
call fcn.0044dd9b
lea eax, [esp + 0x26c]
push eax
call fcn.00402a90
mov eax, dword [0x5030e4]
add esp, 0x28
cmp edi, eax
jne 0x410c75
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x4acdd0
lea ecx, [esp + 0x24c]
push str.SSLTray:_getSCBFromGate_scbName_is__s.
push ecx
call fcn.0044dd9b
lea edx, [esp + 0x254]
push edx
call fcn.00402a90
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0xf
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x18]
add esp, 0x10
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410cb6
mov eax, dword [str._SSL_bin_]
mov ecx, dword [0x47d3b0]
mov dx, word [0x47d3b4]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov eax, 0x4acdd0
mov word [edi + 8], dx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410ce0
lea edi, [esp + 8]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410cf0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 8]
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24c]
push str.SSLTray:_getSCBFromGate_scbURL_is__s.
push ecx
call fcn.0044dd9b
lea edx, [esp + 0x254]
push edx
call fcn.00402a90
call fcn.0041b8d0
mov esi, eax
push esi
lea eax, [esp + 0x25c]
push str.SSLTray:_InitSSLContext_NoSCB_return__d.
push eax
call fcn.0044dd9b
lea ecx, [esp + 0x264]
push ecx
call fcn.00402a90
mov edx, dword [0x5030e4]
push edx
mov edx, dword [0x49f060]
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
push 0x4d3ed0
push esi
call fcn.004064e0
add esp, 0x38
pop edi
pop esi
mov esp, ebp
pop ebp
ret