Function at 0x40ce28
Capabilities:
Gather firefox profile information
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2234
call fcn.004118a0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 0x362]
lea esi, [edi + 0x30]
push eax
mov dword [ebp - 0x18], esi
call fcn.0040deee
test eax, eax
je 0x40d1e5
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x40ce6a
lea ecx, [edi + 0x158]
push ecx
call eax
pop ecx
jmp 0x40ce6d
or eax, 0xffffffff
cmp eax, ebx
jne 0x40d1d5
lea eax, [edi + 0x362]
push eax
lea esi, [ebp - 0x44]
mov dword [ebp - 0x20], ebx
call fcn.0040f64b
test eax, eax
je 0x40d1c9
push 0x208
lea eax, [ebp - 0x55e]
push ebx
push eax
mov dword [ebp - 8], ebx
mov word [ebp - 0x560], bx
call sub.msvcrt.dll_memset
mov esi, 0x104
push esi
lea eax, [ebp - 0x34f]
push ebx
push eax
mov byte [ebp - 0x350], bl
call sub.msvcrt.dll_memset
add esp, 0x18
push esi
lea eax, [ebp - 0x560]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push esi
lea eax, [ebp - 0x350]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x560]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 0x44], ebx
je 0x40cf10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x350]
push eax
call dword [ebp - 0x44]
pop ecx
pop ecx
cmp dword [ebp - 8], ebx
je 0x40d1c9
cmp dword [ebp - 0x40], ebx
mov dword [ebp + 0xc], ebx
je 0x40cf39
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0xc]
push eax
push 0xffffffffffffffff
push str.SELECT_id__hostname__httpRealm__formSubmitURL__usernameField__passwordField__encryptedUsername__encryptedPassword_FROM_moz_logins
push dword [ebp - 8]
call dword [ebp - 0x40]
add esp, 0x14
cmp dword [ebp - 0x3c], ebx
je 0x40cf47
push dword [ebp + 0xc]
call dword [ebp - 0x3c]
pop ecx
jmp 0x40cf4c
mov eax, 0xffff
cmp eax, 0x64
jne 0x40d1ac
push 0x3ff
lea eax, [ebp - 0x222f]
push ebx
push eax
mov byte [ebp - 0x2230], bl
call sub.msvcrt.dll_memset
push 0x1400
lea eax, [ebp - 0x1e30]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
push 1
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
call fcn.0040f7ee
push 6
push dword [ebp + 0xc]
mov esi, eax
lea eax, [ebp - 0x44]
call fcn.0040f7ee
push 7
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x44]
call fcn.0040f7ee
push 4
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
call fcn.0040f7ee
push 5
push dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x44]
call fcn.0040f7ee
push 2
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x44]
call fcn.0040f7ee
cmp esi, ebx
mov dword [ebp - 0xc], eax
je 0x40cff4
lea eax, [ebp - 0x2230]
push esi
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x40d00a
push dword [ebp - 0x10]
lea eax, [ebp - 0x1e30]
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x40d020
push dword [ebp - 4]
lea eax, [ebp - 0x1a30]
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x40d036
push dword [ebp - 0x14]
lea eax, [ebp - 0x1630]
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
cmp dword [ebp - 0x1c], ebx
je 0x40d04c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1230]
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
cmp dword [ebp - 0xc], ebx
je 0x40d062
push dword [ebp - 0xc]
lea eax, [ebp - 0xe30]
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
mov esi, 0xff
push esi
lea eax, [ebp - 0x147]
push ebx
push eax
mov byte [ebp - 0x148], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x247]
push ebx
push eax
mov byte [ebp - 0x248], bl
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x248]
push eax
mov eax, dword [ebp - 4]
mov ecx, edi
call fcn.0040cd27
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 0x10]
mov ecx, edi
call fcn.0040cd27
cmp dword [edi + 0x474], ebx
mov dword [ebp - 4], ebx
jle 0x40cf39
add edi, 0x468
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
call fcn.0040d438
mov edi, 0x261
push edi
mov esi, eax
lea eax, [ebp - 0xa2f]
push ebx
push eax
mov byte [ebp - 0xa30], bl
call sub.msvcrt.dll_memset
push edi
lea eax, [ebp - 0x7c7]
push ebx
push eax
mov byte [ebp - 0x7c8], bl
call sub.msvcrt.dll_memset
lea edi, [esi + 0x104]
push edi
lea eax, [ebp - 0xa30]
push str.mailbox:___s
push eax
call sub.msvcrt.dll_sprintf
push edi
lea eax, [ebp - 0x7c8]
push str.imap:___s
push eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0xe30]
push eax
lea eax, [ebp - 0xa30]
push eax
call sub.msvcrt.dll__strcmpi
add esp, 0x38
test eax, eax
je 0x40d163
lea eax, [ebp - 0xe30]
push eax
lea eax, [ebp - 0x7c8]
push eax
call sub.msvcrt.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0x40d190
lea eax, [ebp - 0x248]
push eax
lea edi, [esi + 0x304]
mov ebx, 0xff
call fcn.004060d0
lea eax, [ebp - 0x148]
push eax
lea edi, [esi + 0x204]
call fcn.004060d0
pop ecx
pop ecx
xor ebx, ebx
inc dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x474]
jl 0x40d0cc
mov edi, eax
jmp 0x40cf39
cmp dword [ebp + 0xc], ebx
je 0x40d1bd
cmp dword [ebp - 0x2c], ebx
je 0x40d1bd
push dword [ebp + 0xc]
call dword [ebp - 0x2c]
pop ecx
cmp dword [ebp - 0x28], ebx
je 0x40d1c9
push dword [ebp - 8]
call dword [ebp - 0x28]
pop ecx
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40d1d5
call eax
cmp dword [esi], ebx
je 0x40d1e5
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [esi], ebx
pop edi
pop esi
pop ebx
leave
ret 8