Function at 0x405560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5641da
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x5df890]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5df890]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov esi, ecx
push str.find_profile_start
xor ebx, ebx
push str.CFirefoxInfo::ParseFirefoxProfilePath
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], ebx
call fcn.0055e8c0
add esp, 8
lea eax, [esp + 0x30]
push eax
call fcn.0040d610
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x184], ebx
call fcn.0040d610
lea edx, [esp + 0x120]
push edx
mov byte [esp + 0x184], 1
call fcn.00405f60
sub esp, 0x18
mov ecx, esp
mov byte [esp + 0x19c], 2
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x144]
mov ebp, 0xf
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00401d50
call fcn.0055d660
add esp, 0x1c
cmp al, bl
jne 0x4056b3
push esi
lea ecx, [esp + 0x50]
call fcn.00406410
cmp dword [esp + 0x138], 0x10
jb 0x40564c
mov ecx, dword [esp + 0x124]
push ecx
call fcn.0041d541
add esp, 4
mov eax, dword [esp + 0x58]
mov dword [esp + 0x138], ebp
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
cmp eax, ebx
je 0x405685
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x5c]
push edx
push ecx
call fcn.00409040
mov edx, dword [esp + 0x60]
push edx
call fcn.0041d541
add esp, 0xc
mov eax, dword [esp + 0x4c]
push eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call fcn.0041d541
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, ebx
je 0x405f14
mov ecx, dword [esp + 0x28]
jmp 0x405efa
lea ecx, [esp + 0x94]
push ecx
call fcn.0040d610
lea edx, [esp + 0x94]
push edx
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x1a0], 3
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x148]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00401d50
call fcn.0055e6f0
add esp, 8
mov ecx, esp
mov dword [esp + 0x30], esp
push ecx
lea ecx, [esp + 0xb0]
call fcn.00406030
sub esp, 0x1c
mov byte [esp + 0x1b4], 4
mov ecx, esp
mov dword [esp + 0x50], esp
push 7
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.Install
mov byte [ecx + 4], bl
call fcn.004016f0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x7c], esp
push 0xffffffffffffffff
mov byte [esp + 0x1d4], 5
push ebx
lea edx, [esp + 0x178]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00401d50
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x1d4], 3
call fcn.00404f90
add esp, 0x3c
mov ecx, esp
mov byte [esp + 0x198], 6
mov dword [esp + 0x30], esp
push ecx
lea ecx, [esp + 0xb0]
call fcn.00406030
sub esp, 0x1c
mov byte [esp + 0x1b4], 7
mov ecx, esp
mov dword [esp + 0x50], esp
push 7
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.Profile
mov byte [ecx + 4], bl
call fcn.004016f0
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x1d0], 8
mov dword [esp + 0x7c], esp
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x178]
push edx
call fcn.00401d50
lea eax, [esp + 0xb4]
push eax
mov byte [esp + 0x1d4], 6
call fcn.00404f90
add esp, 0x54
mov byte [esp + 0x180], 9
mov eax, dword [esp + 0x40]
mov esi, eax
cmp dword [esp + 0x3c], eax
jbe 0x405811
call fcn.0043a4a0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x88]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x18], ecx
cmp eax, ecx
jbe 0x405842
call fcn.0043a4a0
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x1c], eax
cmp eax, ecx
jbe 0x405853
call fcn.0043a4a0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x24]
push edi
push eax
mov eax, dword [esp + 0x34]
push ecx
push esi
push edx
push eax
lea ecx, [esp + 0x4c]
call fcn.00408b80
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x3c], eax
jbe 0x40588a
call fcn.0043a4a0
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
cmp edi, eax
jbe 0x4058af
call fcn.0043a4a0
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x64]
cmp edi, eax
jbe 0x4058bc
call fcn.0043a4a0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
push esi
push edi
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
lea ecx, [esp + 0x4c]
call fcn.00408b80
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x3c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
push str.get_profile_path_from_sections__d
push str.CFirefoxInfo::ParseFirefoxProfilePath
call fcn.0055e8c0
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x48]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
xor esi, esi
shr eax, 0x1f
add esp, 0xc
add eax, edx
mov dword [esp + 0x18], esi
je 0x405d90
mov dword [esp + 0x2c], ebx
cmp esi, eax
jb 0x405942
call fcn.0043a4a0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
push 0xffffffffffffffff
add eax, edx
push ebx
push eax
lea ecx, [esp + 0x148]
mov dword [esp + 0x160], ebp
mov dword [esp + 0x15c], ebx
mov byte [esp + 0x14c], bl
call fcn.00401d50
mov byte [esp + 0x180], 0xa
mov eax, dword [esp + 0x140]
mov edi, 0x10
cmp dword [esp + 0x154], edi
jae 0x405995
lea eax, [esp + 0x140]
push eax
push str.section_name___s
push str.CFirefoxInfo::ParseFirefoxProfilePath
call fcn.0055e8c0
add esp, 0xc
lea ecx, [esp + 0xc4]
push ecx
call fcn.00406760
lea edx, [esp + 0xc4]
push edx
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x1a0], 0xb
mov dword [esp + 0x68], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x164]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00401d50
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x1bc], 0xc
mov dword [esp + 0x5c], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x164]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00401d50
mov byte [esp + 0x1bc], 0xb
call fcn.0055e360
add esp, 0x3c
cmp dword [esp + 0xe0], ebx
jne 0x405a8a
push str.section_items_empty
push str.CFirefoxInfo::ParseFirefoxProfilePath
call fcn.0055e8c0
add esp, 8
lea esi, [esp + 0xc4]
mov byte [esp + 0x180], 0xd
call fcn.00406a80
mov eax, dword [esp + 0xc4]
push eax
call fcn.0041d541
add esp, 4
mov byte [esp + 0x180], 9
cmp dword [esp + 0x154], edi
jb 0x405d5f
mov ecx, dword [esp + 0x140]
push ecx
call fcn.0041d541
add esp, 4
jmp 0x405d5f
sub esp, 0x20
mov dword [esp + 0x40], esp
mov eax, esp
lea edx, [esp + 0xe4]
push edx
push eax
call fcn.00406360
lea eax, [esp + 0x178]
push eax
call fcn.004051e0
add esp, 0x24
mov byte [esp + 0x180], 0xe
cmp dword [esp + 0x16c], ebx
jne 0x405b41
push str.path_not_found
push str.CFirefoxInfo::ParseFirefoxProfilePath
call fcn.0055e8c0
add esp, 8
cmp dword [esp + 0x170], edi
jb 0x405aed
mov ecx, dword [esp + 0x15c]
push ecx
call fcn.0041d541
add esp, 4
lea edx, [esp + 0xc4]
push edx
mov dword [esp + 0x174], ebp
mov dword [esp + 0x170], ebx
mov byte [esp + 0x160], bl
mov byte [esp + 0x184], 0xa
call fcn.00404f30
mov byte [esp + 0x180], 9
cmp dword [esp + 0x154], edi
jb 0x405d5f
mov eax, dword [esp + 0x140]
push eax
call fcn.0041d541
add esp, 4
jmp 0x405d5f
lea ecx, [esp + 0xac]
push ecx
mov byte [esp + 0x20], bl
call fcn.0040d610
lea edx, [esp + 0xac]
push edx
sub esp, 0x1c
mov byte [esp + 0x1a0], 0xf
mov ecx, esp
mov dword [esp + 0x40], esp
push 8
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.cert9.db
mov byte [ecx + 4], bl
call fcn.004016f0
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x1bc], 0x10
mov dword [esp + 0x84], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x19c]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00401d50
mov byte [esp + 0x1bc], 0xf
call fcn.004048b0
add esp, 0x3c
cmp eax, ebx
jle 0x405bd8
push str.db_type_is_cert9
push str.CFirefoxInfo::ParseFirefoxProfilePath
mov byte [esp + 0x24], 1
call fcn.0055e8c0
add esp, 8
mov ecx, dword [esp + 0x1c]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x180]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00401d50
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x1bc], 0x11
mov dword [esp + 0x84], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x180]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00401d50
lea esi, [esp + 0x120]
mov byte [esp + 0x1bc], 0xf
call fcn.00404750
push eax
lea ebx, [esp + 0x50]
mov byte [esp + 0x184], 0x12
call fcn.00406580
mov esi, 0x10
cmp dword [esp + 0x118], esi
jb 0x405c70
mov ecx, dword [esp + 0x104]
push ecx
call fcn.0041d541
add esp, 4
xor ebx, ebx
mov ebp, 0xf
mov dword [esp + 0x118], ebp
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
cmp dword [esp + 0xfc], esi
jb 0x405ca5
mov edx, dword [esp + 0xe8]
push edx
call fcn.0041d541
add esp, 4
mov eax, dword [esp + 0xb8]
cmp eax, ebx
je 0x405cd4
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0xbc]
push ecx
call fcn.004015a0
mov edx, dword [esp + 0xbc]
add esp, 4
push edx
call fcn.0041d541
add esp, 4
mov eax, dword [esp + 0xac]
push eax
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
call fcn.0041d541
add esp, 4
cmp dword [esp + 0x170], esi
jb 0x405d12
mov ecx, dword [esp + 0x15c]
push ecx
call fcn.0041d541
add esp, 4
lea edx, [esp + 0xc4]
push edx
mov dword [esp + 0x174], ebp
mov dword [esp + 0x170], ebx
mov byte [esp + 0x160], bl
mov byte [esp + 0x184], 0xa
call fcn.00404f30
mov byte [esp + 0x180], 9
cmp dword [esp + 0x154], esi
jb 0x405d5d
mov eax, dword [esp + 0x140]
push eax
call fcn.0041d541
add esp, 4
xor ebx, ebx
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
add dword [esp + 0x2c], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
mov dword [esp + 0x18], esi
cmp esi, eax
jb 0x405942
mov esi, dword [esp + 0x28]
push esi
lea ecx, [esp + 0x50]
call fcn.00406410
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x405dc4
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x74]
push ecx
call fcn.004015a0
mov edx, dword [esp + 0x74]
add esp, 4
push edx
call fcn.0041d541
add esp, 4
mov eax, dword [esp + 0x64]
push eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
call fcn.0041d541
mov eax, dword [esp + 0x8c]
add esp, 4
cmp eax, ebx
je 0x405e0c
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x8c]
push ecx
call fcn.004015a0
mov edx, dword [esp + 0x8c]
add esp, 4
push edx
call fcn.0041d541
add esp, 4
mov eax, dword [esp + 0x7c]
push eax
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
call fcn.0041d541
mov eax, dword [esp + 0xa4]
add esp, 4
cmp eax, ebx
je 0x405e5d
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0xa4]
push ecx
call fcn.004015a0
mov edx, dword [esp + 0xa4]
add esp, 4
push edx
call fcn.0041d541
add esp, 4
mov eax, dword [esp + 0x94]
push eax
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
call fcn.0041d541
add esp, 4
cmp dword [esp + 0x138], 0x10
jb 0x405e9c
mov ecx, dword [esp + 0x124]
push ecx
call fcn.0041d541
add esp, 4
mov eax, dword [esp + 0x58]
mov dword [esp + 0x138], ebp
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
cmp eax, ebx
je 0x405ed5
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x5c]
push edx
push ecx
call fcn.00409040
mov edx, dword [esp + 0x60]
push edx
call fcn.0041d541
add esp, 0xc
mov eax, dword [esp + 0x4c]
push eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call fcn.0041d541
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, ebx
je 0x405f14
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x40]
push ecx
call fcn.004015a0
mov edx, dword [esp + 0x40]
add esp, 4
push edx
call fcn.0041d541
add esp, 4
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.0041d541
mov eax, esi
add esp, 4
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.0043a097
add esp, 0x170
ret