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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418fe5
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4241dc]
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 - 0xc0]
mov dword [ebp - 0x84], eax
call fcn.004010b0
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0
call fcn.004010a0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.004010a0
lea eax, [ebp - 0xc0]
push eax
push str.SoftwareMozilla
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00405bd0
test al, al
je 0x405a30
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 - 0x74], eax
test eax, eax
jne 0x405683
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0xa
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401020
sub esp, 8
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
mov byte [ebp - 4], 3
call fcn.00401000
mov ecx, dword [edi + 0x170]
push 0x6e3
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.004010d0
push str.GetFileVersionInfoW
push str.version.dll
call esi
push eax
call ebx
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x4056dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0xa
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401020
sub esp, 8
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
mov byte [ebp - 4], 5
call fcn.00401000
mov ecx, dword [edi + 0x170]
push 0x6e5
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.004010d0
push str.VerQueryValueW
push str.version.dll
call esi
push eax
call ebx
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x405738
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0xa
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401020
sub esp, 8
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
mov byte [ebp - 4], 7
call fcn.00401000
mov ecx, dword [edi + 0x170]
push 0x6e8
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.004010d0
mov eax, dword [ebp - 0x6c]
cmp dword [ebp - 0x70], 0
je 0x405a30
test eax, eax
je 0x405a30
lea ecx, [ebp - 0xc0]
call fcn.004015f0
mov esi, eax
mov dword [ebp - 0x60], esi
cmp dword [esi + 4], 0
je 0x405a20
sub esp, 8
mov ecx, esi
push esp
call fcn.004016e0
lea ecx, [ebp - 0x7c]
call fcn.00401820
sub esp, 8
lea eax, [ebp - 0x7c]
mov ecx, esp
push eax
call fcn.00401000
lea ecx, [ebp - 0x68]
call fcn.00401820
sub esp, 8
mov ecx, esp
push str.NPSWF32.dll
call fcn.00401070
push 0x5c
lea ecx, [ebp - 0x68]
call fcn.004014e0
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00401000
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 9
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4057d8
test al, 0x10
jne 0x4057d8
mov bl, 1
jmp 0x4057da
xor bl, bl
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.004010d0
test bl, bl
je 0x405a0f
lea ecx, [ebp - 0x9c]
call fcn.004010a0
sub esp, 8
lea eax, [ebp - 0x9c]
mov ecx, esp
push eax
mov byte [ebp - 4], 0xa
call fcn.00401000
mov ecx, dword [edi + 0x170]
push 0x2e
mov eax, dword [ecx]
push 0
call dword [eax + 0x14]
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.004010d0
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x68]
call fcn.00402110
push eax
call dword [ebp - 0x74]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x4059ce
xor ebx, ebx
inc eax
mov ecx, 2
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.0040faa6
mov esi, eax
add esp, 4
test esi, esi
je 0x40597d
push ebx
push 0
push esi
call fcn.00410190
add esp, 0xc
lea ecx, [ebp - 0x68]
push esi
push dword [ebp - 0x54]
push 0
call fcn.00402110
push eax
call dword [ebp - 0x70]
test eax, eax
je 0x405938
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x41a480
push esi
mov dword [ebp - 0x54], 0
call dword [ebp - 0x6c]
test eax, eax
je 0x4058fe
mov edx, dword [ebp - 0x80]
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.0040fa85
mov ecx, dword [ebp - 0x84]
add esp, 0x1c
lea eax, [ebp - 0x50]
push eax
call fcn.004017e0
push esi
call fcn.0040faa1
mov esi, dword [ebp - 0x60]
add esp, 4
jmp 0x405a0f
lea ecx, [ebp - 0xb4]
call fcn.004010a0
sub esp, 8
lea eax, [ebp - 0xb4]
mov ecx, esp
push eax
mov byte [ebp - 4], 0xc
call fcn.00401000
mov ecx, dword [edi + 0x170]
push 0x6e9
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
lea ecx, [ebp - 0xb4]
jmp 0x4059b7
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 + 0x170]
push 0x6e7
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
lea ecx, [ebp - 0xac]
jmp 0x4059b7
lea ecx, [ebp - 0x94]
xor esi, esi
call fcn.004010a0
sub esp, 8
lea eax, [ebp - 0x94]
mov ecx, esp
push eax
mov byte [ebp - 4], 0xe
call fcn.00401000
mov ecx, dword [edi + 0x170]
push 0x6e6
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.004010d0
push esi
call fcn.0040faa1
mov esi, dword [ebp - 0x60]
add esp, 4
jmp 0x405a0f
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 + 0x170]
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.00401740
cmp dword [esi + 4], 0
jne 0x405764
mov ecx, esi
call fcn.00401130
push esi
call fcn.0040e7d0
add esp, 4
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.004010d0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.004010d0
lea ecx, [ebp - 0xc0]
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.0040e7d5
mov esp, ebp
pop ebp
ret 4