Function at 0x421e00
Capabilities:
Get file size
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5c6609
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x11c], ebp
push str.extensions.rdf
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.0041fa10
add esp, 0xc
mov byte [esp + 0x11c], 1
lea ecx, [esp + 0xe0]
call fcn.0047fd40
mov byte [esp + 0x11c], 2
lea ecx, [esp + 0xe0]
call fcn.0047dd20
mov eax, dword [esp + 0x5c]
mov edi, 8
cmp dword [esp + 0x70], edi
jae 0x421e7d
lea eax, [esp + 0x5c]
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0043bf90
mov byte [esp + 0x124], 3
mov byte [esp + 0x124], 2
lea ecx, [esp + 0xe8]
call fcn.0047e850
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push str.RDF:RDF
call fcn.0043bf90
mov byte [esp + 0x124], 4
mov byte [esp + 0x124], 2
lea ecx, [esp + 0xe8]
call fcn.0047eaa0
lea ecx, [esp + 0xe0]
call fcn.0047d700
lea ecx, [esp + 0xe0]
call fcn.0047d0e0
test eax, eax
je 0x42202a
mov bl, 6
lea esp, [esp]
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push str.RDF:about
call fcn.0043bf90
mov byte [esp + 0x124], 5
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x128], 2
lea ecx, [esp + 0xec]
call fcn.0047e7c0
mov byte [esp + 0x11c], bl
mov eax, dword [esp + 0x14]
mov ecx, str.urn:mozilla:item:37964A3C_4EE8_47b1_8321_34DE2C39BA4D
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421f6a
cmp dx, bp
je 0x421f66
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421f6a
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x421f44
xor eax, eax
jmp 0x421f6f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
sete al
test al, al
jne 0x421fb3
lea ecx, [esp + 0xe0]
call fcn.0047d900
test eax, eax
jne 0x422019
mov byte [esp + 0x11c], 2
lea ecx, [esp + 0x14]
call fcn.004381e0
lea ecx, [esp + 0xe0]
call fcn.0047d0e0
test eax, eax
jne 0x421f00
jmp 0x42202a
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push str.NS1:userDisabled
call fcn.0043bf90
mov byte [esp + 0x124], 7
mov byte [esp + 0x124], bl
lea ecx, [esp + 0xe8]
call fcn.0047f1d0
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], edi
jae 0x421fef
lea eax, [esp + 0x5c]
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0043bf90
mov byte [esp + 0x124], 8
mov byte [esp + 0x124], bl
lea ecx, [esp + 0xe8]
call fcn.0047cd80
mov byte [esp + 0x11c], 2
lea ecx, [esp + 0x14]
call fcn.004381e0
push str.localstore.rdf
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x7c]
push ecx
call fcn.0041fa10
add esp, 0xc
mov byte [esp + 0x11c], 9
lea ecx, [esp + 0xac]
call fcn.0047fd40
mov byte [esp + 0x11c], 0xa
lea ecx, [esp + 0xac]
call fcn.0047dd20
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], edi
jae 0x42207d
lea eax, [esp + 0x78]
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0043bf90
mov byte [esp + 0x124], 0xb
mov byte [esp + 0x124], 0xa
lea ecx, [esp + 0xb4]
call fcn.0047e850
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push str.RDF:RDF
call fcn.0043bf90
mov byte [esp + 0x124], 0xc
mov byte [esp + 0x124], 0xa
lea ecx, [esp + 0xb4]
call fcn.0047eaa0
lea ecx, [esp + 0xac]
call fcn.0047d700
lea ecx, [esp + 0xac]
call fcn.0047d0e0
test eax, eax
je 0x42224b
mov bl, 0xe
lea esp, [esp]
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push str.RDF:about
call fcn.0043bf90
mov byte [esp + 0x124], 0xd
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x128], 0xa
lea ecx, [esp + 0xb8]
call fcn.0047e7c0
mov byte [esp + 0x11c], bl
mov eax, dword [esp + 0x1c]
mov ecx, str.chrome:__browser_content_browser.xulmailru_main_toolbar
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42216a
cmp dx, bp
je 0x422166
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42216a
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x422144
xor eax, eax
jmp 0x42216f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
sete al
test al, al
jne 0x4221b6
lea ecx, [esp + 0xac]
call fcn.0047d900
test eax, eax
jne 0x42223a
mov byte [esp + 0x11c], 0xa
lea ecx, [esp + 0x1c]
call fcn.004381e0
lea ecx, [esp + 0xac]
call fcn.0047d0e0
test eax, eax
jne 0x422100
jmp 0x42224b
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x5df390
call fcn.0043bf90
mov byte [esp + 0x124], 0xf
sub esp, 8
mov ecx, esp
mov dword [esp + 0x24], esp
push str.collapsed
call fcn.0043bf90
mov byte [esp + 0x12c], 0x10
mov byte [esp + 0x12c], bl
lea ecx, [esp + 0xbc]
call fcn.0047f030
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], edi
jae 0x422210
lea eax, [esp + 0x78]
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0043bf90
mov byte [esp + 0x124], 0x11
mov byte [esp + 0x124], bl
lea ecx, [esp + 0xb4]
call fcn.0047cd80
mov byte [esp + 0x11c], 0xa
lea ecx, [esp + 0x1c]
call fcn.004381e0
push str.extensions.cache
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x98]
push ecx
call fcn.0041fa10
add esp, 0xc
mov byte [esp + 0x11c], 0x12
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], edi
jae 0x422287
lea eax, [esp + 0x94]
push ebp
push ebp
push 3
push ebp
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x10], esi
mov byte [esp + 0x11c], 0x13
cmp esi, 0xffffffff
je 0x422418
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea edx, [edi + 1]
push edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x20], ebp
call fcn.004209e0
mov bl, 0x14
mov byte [esp + 0x11c], bl
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x4c]
jne 0x4222e4
call fcn.0051d2bd
mov edx, dword [esp + 0x4c]
push ebp
lea ecx, [esp + 0x20]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422402
cmp edi, dword [esp + 0x1c]
jne 0x422402
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x4c]
cmp edi, eax
jb 0x42231a
call fcn.0051d2bd
mov ecx, dword [esp + 0x4c]
mov byte [ecx + edi], 0
mov edx, dword [esp + 0x50]
sub edx, dword [esp + 0x4c]
jne 0x422331
call fcn.0051d2bd
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x28]
call fcn.00404370
mov byte [esp + 0x11c], 0x15
push 0x32
push ebp
push str.app_profile_t37964A3C_4EE8_47b1_8321_34DE2C39BA4D
lea ecx, [esp + 0x30]
call fcn.0041d9a0
cmp eax, 0xffffffff
je 0x42239c
push eax
push 0x5df320
lea ecx, [esp + 0x2c]
call fcn.0041de80
push 1
mov edi, eax
push edi
push 0x5df31c
lea ecx, [esp + 0x30]
call fcn.0041da60
cmp eax, 0xffffffff
je 0x42239c
cmp edi, 0xffffffff
je 0x42239c
inc eax
push str.needs_install
sub edi, eax
push edi
push eax
lea ecx, [esp + 0x30]
call fcn.0041edb0
push ebp
push ebp
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esp + 0x28]
mov edi, 0x10
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x3c], edi
jae 0x4223c4
lea eax, [esp + 0x28]
mov edx, dword [esp + 0x38]
push ebp
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [esp + 0x11c], bl
cmp dword [esp + 0x3c], edi
jb 0x4223f1
mov eax, dword [esp + 0x28]
push eax
call fcn.004d9334
add esp, 4
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebp
mov byte [esp + 0x28], 0
mov byte [esp + 0x11c], 0x13
lea ecx, [esp + 0x40]
call fcn.0041e3b0
mov edi, 8
mov byte [esp + 0x11c], 0x12
cmp esi, ebp
je 0x42242f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebp
mov byte [esp + 0x11c], 0xa
cmp dword [esp + 0xa8], edi
jb 0x422450
mov ecx, dword [esp + 0x94]
push ecx
call fcn.004d9334
add esp, 4
mov esi, 7
xor edx, edx
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], ebp
mov word [esp + 0x94], dx
mov byte [esp + 0x11c], 9
lea ecx, [esp + 0xac]
call fcn.0047fdb0
mov byte [esp + 0x11c], 2
cmp dword [esp + 0x8c], edi
jb 0x42249f
mov eax, dword [esp + 0x78]
push eax
call fcn.004d9334
add esp, 4
xor ecx, ecx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebp
mov word [esp + 0x78], cx
mov byte [esp + 0x11c], 1
lea ecx, [esp + 0xe0]
call fcn.0047fdb0
mov byte [esp + 0x11c], 0
cmp dword [esp + 0x70], edi
jb 0x4224e3
mov edx, dword [esp + 0x5c]
push edx
call fcn.004d9334
add esp, 4
xor eax, eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebp
mov word [esp + 0x5c], ax
mov dword [esp + 0x11c], 0xffffffff
cmp dword [esp + 0x13c], edi
jb 0x422516
mov ecx, dword [esp + 0x128]
push ecx
call fcn.004d9334
add esp, 4
mov ecx, dword [esp + 0x114]
pop edi
mov dword [esp + 0x138], esi
pop esi
mov dword [esp + 0x130], ebp
xor edx, edx
pop ebp
mov word [esp + 0x11c], dx
mov dword fs:[0], ecx
pop ebx
add esp, 0x110
ret