Function at 0x405510
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419592
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4251dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
call fcn.004010b0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], 0
call fcn.004010a0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
mov dword [ebp - 0x64], 0
call fcn.004010a0
lea eax, [ebp - 0x70]
push eax
push str.SoftwareMozilla
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00405ae0
test al, al
je 0x4059d8
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetFileVersionInfoSizeW
push str.version.dll
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [ebp - 0x90], eax
test eax, eax
jne 0x40560c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0xa
push eax
lea ecx, [ebp - 0x80]
call fcn.00401020
sub esp, 8
lea eax, [ebp - 0x80]
mov ecx, esp
push eax
mov byte [ebp - 4], 3
call fcn.00401000
mov ecx, dword [edi + 0x168]
push 0x6e3
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.004010d0
push str.GetFileVersionInfoW
push str.version.dll
call esi
push eax
call ebx
mov dword [ebp - 0x8c], eax
test eax, eax
jne 0x405668
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0xa
push eax
lea ecx, [ebp - 0x80]
call fcn.00401020
sub esp, 8
lea eax, [ebp - 0x80]
mov ecx, esp
push eax
mov byte [ebp - 4], 5
call fcn.00401000
mov ecx, dword [edi + 0x168]
push 0x6e5
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.004010d0
push str.VerQueryValueW
push str.version.dll
call esi
push eax
call ebx
mov dword [ebp - 0x88], eax
test eax, eax
jne 0x4056ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0xa
push eax
lea ecx, [ebp - 0x80]
call fcn.00401020
sub esp, 8
lea eax, [ebp - 0x80]
mov ecx, esp
push eax
mov byte [ebp - 4], 7
call fcn.00401000
mov ecx, dword [edi + 0x168]
push 0x6e8
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.004010d0
mov eax, dword [ebp - 0x88]
cmp dword [ebp - 0x8c], 0
je 0x4059d8
test eax, eax
je 0x4059d8
lea ecx, [ebp - 0x70]
call fcn.00401600
mov esi, eax
mov dword [ebp - 0x84], esi
cmp dword [esi + 4], 0
je 0x4059c8
lea esp, [esp]
sub esp, 8
mov ecx, esi
push esp
call fcn.00401700
lea ecx, [ebp - 0x64]
call fcn.00401840
sub esp, 8
lea eax, [ebp - 0x64]
mov ecx, esp
push eax
call fcn.00401000
lea ecx, [ebp - 0x5c]
call fcn.00401840
sub esp, 8
mov ecx, esp
push str.NPSWF32.dll
call fcn.00401070
push 0x5c
lea ecx, [ebp - 0x5c]
call fcn.004014e0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00401000
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 9
call fcn.00402130
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405774
test al, 0x10
jne 0x405774
mov bl, 1
jmp 0x405776
xor bl, bl
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.004010d0
test bl, bl
je 0x4059b7
lea ecx, [ebp - 0xb4]
call fcn.004010a0
sub esp, 8
lea eax, [ebp - 0xb4]
mov ecx, esp
push eax
mov byte [ebp - 4], 0xa
call fcn.00401000
mov ecx, dword [edi + 0x168]
push 0x2e
mov eax, dword [ecx]
push 0
call dword [eax + 0x14]
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 2
call fcn.004010d0
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00402130
push eax
call dword [ebp - 0x90]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x405976
xor ebx, ebx
inc eax
mov ecx, 2
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.00410126
mov esi, eax
add esp, 4
test esi, esi
je 0x405922
push ebx
push 0
push esi
call fcn.00410810
add esp, 0xc
lea ecx, [ebp - 0x5c]
push esi
push dword [ebp - 0x54]
push 0
call fcn.00402130
push eax
call dword [ebp - 0x8c]
test eax, eax
je 0x4058dd
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x41b480
push esi
mov dword [ebp - 0x54], 0
call dword [ebp - 0x88]
test eax, eax
je 0x4058a3
mov edx, dword [ebp - 0x78]
mov ecx, dword [edx + 0xc]
movzx eax, cx
push eax
movzx eax, word [edx + 8]
shr ecx, 0x10
push ecx
push eax
movzx eax, word [edx + 0x12]
push eax
push str._d._d._d._d
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00410105
mov ecx, dword [ebp - 0x94]
add esp, 0x1c
lea eax, [ebp - 0x50]
push eax
call fcn.00401800
push esi
call fcn.00410121
mov esi, dword [ebp - 0x84]
add esp, 4
jmp 0x4059b7
lea ecx, [ebp - 0xc4]
call fcn.004010a0
sub esp, 8
lea eax, [ebp - 0xc4]
mov ecx, esp
push eax
mov byte [ebp - 4], 0xc
call fcn.00401000
mov ecx, dword [edi + 0x168]
push 0x6e9
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
lea ecx, [ebp - 0xc4]
jmp 0x40595c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0xa
push eax
lea ecx, [ebp - 0xac]
call fcn.00401020
sub esp, 8
lea eax, [ebp - 0xac]
mov ecx, esp
push eax
mov byte [ebp - 4], 0x10
call fcn.00401000
mov ecx, dword [edi + 0x168]
push 0x6e7
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
lea ecx, [ebp - 0xac]
jmp 0x40595c
lea ecx, [ebp - 0xbc]
xor esi, esi
call fcn.004010a0
sub esp, 8
lea eax, [ebp - 0xbc]
mov ecx, esp
push eax
mov byte [ebp - 4], 0xe
call fcn.00401000
mov ecx, dword [edi + 0x168]
push 0x6e6
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 2
call fcn.004010d0
push esi
call fcn.00410121
mov esi, dword [ebp - 0x84]
add esp, 4
jmp 0x4059b7
lea ecx, [ebp - 0xa4]
call fcn.004010a0
sub esp, 8
lea eax, [ebp - 0xa4]
mov ecx, esp
push eax
mov byte [ebp - 4], 0x12
call fcn.00401000
mov ecx, dword [edi + 0x168]
push 0x6e4
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 2
call fcn.004010d0
mov ecx, esi
call fcn.00401760
cmp dword [esi + 4], 0
jne 0x405700
mov ecx, esi
call fcn.00401130
push esi
call fcn.0040ee50
add esp, 4
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.004010d0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.004010d0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
call fcn.004010f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret 4