Function at 0x40bbd0
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f89e0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x458
mov eax, dword [0x530010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x44c], eax
push 0x208
lea eax, [ebp - 0x3a8]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004c6550
add esp, 0xc
lea eax, [ebp - 0x3a8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x3a8]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
lea edx, [ecx + 2]
mov word [ebp - 0x2c], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bc80
sub ecx, edx
lea eax, [ebp - 0x3a8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004014e0
mov byte [ebp - 4], 1
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae edi, dword [ebp - 0x2c]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x3b0], ecx
push edi
mov dword [ebp - 0x3ac], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bd4e
lea eax, [ebp - 0x3b4]
mov dword [ebp - 0x3b4], 0
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x448], eax
test eax, eax
je 0x40bd4e
push eax
call fcn.00476a95
add esp, 4
mov esi, eax
push esi
push dword [ebp - 0x448]
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40bd45
lea ecx, [esi + 6]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bd14
sub ecx, edx
sar ecx, 1
add ecx, 4
lea eax, [esi + ecx*2]
sub eax, esi
add eax, 3
and eax, 0xfffffffc
mov ecx, dword [eax + esi + 0xc]
mov eax, dword [eax + esi + 8]
mov dword [ebp - 0x3b0], ecx
mov dword [ebp - 0x3ac], eax
push esi
call fcn.00476a52
add esp, 4
mov eax, dword [ebp - 0x3ac]
mov esi, eax
movzx edx, ax
mov eax, dword [ebp - 0x3b0]
mov ecx, eax
movzx eax, ax
push eax
shr ecx, 0x10
lea eax, [ebp - 0x1a0]
push ecx
push edx
shr esi, 0x10
push esi
push str._d._d._d._d
push eax
call fcn.00409c50
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 0x3fc], 0
add esp, 0x18
mov dword [ebp - 0x3ec], 0
mov dword [ebp - 0x3e8], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x3fc], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bdb0
sub ecx, edx
lea eax, [ebp - 0x1a0]
push ecx
push eax
lea ecx, [ebp - 0x3fc]
call fcn.004015f0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40be0a
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40be00
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c416
push edx
push ecx
call fcn.00476a87
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
push 7
mov dword [ebp - 0x3e4], eax
lea ecx, [ebp - 0x3e4]
push str.browser
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x3d4], eax
mov dword [ebp - 0x3d0], 0xf
mov byte [ebp - 0x3e4], al
call fcn.004015f0
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 4
call fcn.0040b060
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 5
call fcn.0040b740
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x42c]
call fcn.0046a620
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x450]
cmp edx, 8
jb 0x40bebf
mov ecx, dword [ebp - 0x464]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40beb5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c41b
push edx
push ecx
call fcn.00476a87
add esp, 8
xor eax, eax
mov dword [ebp - 0x454], 0
push 0x518710
mov dword [ebp - 0x450], 7
mov word [ebp - 0x464], ax
mov dword [ebp - 0x3ac], eax
mov dword [ebp - 0x3b0], eax
mov dword [ebp - 0x3b4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40bf3a
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bf33
lea ecx, [ebp - 0x3ac]
push ecx
lea ecx, [ebp - 0x3b0]
push ecx
lea ecx, [ebp - 0x3b4]
push ecx
call eax
movzx eax, word [ebp - 0x3ac]
mov dword [ebp - 0x3ac], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x104
lea eax, [ebp - 0x1a0]
push 0
push eax
call fcn.004c6550
add esp, 0xc
lea eax, [ebp - 0x1a0]
push dword [ebp - 0x3ac]
push dword [ebp - 0x3b0]
push dword [ebp - 0x3b4]
push str._d._d._d
push eax
call fcn.00409c50
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 0x3cc], 0
add esp, 0x14
mov dword [ebp - 0x3bc], 0
mov dword [ebp - 0x3b8], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x3cc], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bfa4
sub ecx, edx
lea eax, [ebp - 0x1a0]
push ecx
push eax
lea ecx, [ebp - 0x3cc]
call fcn.004015f0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push eax
movups xmmword [ebp - 0x28], xmm0
call fcn.0046a810
push 0x48
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.004c6550
add esp, 0xc
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x40], xmm0
call fcn.0046bb40
push 0x24
lea eax, [ebp - 0x98]
push eax
push 0x20
lea eax, [ebp - 0x50]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
mov dword [ebp - 0x464], 0
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 7
lea edx, [ecx + 2]
mov word [ebp - 0x464], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c054
sub ecx, edx
lea eax, [ebp - 0x98]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x464]
call fcn.004014e0
lea edx, [ebp - 0x464]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x414]
call fcn.0046a620
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x450]
cmp edx, 8
jb 0x40c0cf
mov ecx, dword [ebp - 0x464]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c0c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c420
push edx
push ecx
call fcn.00476a87
add esp, 8
xor eax, eax
mov dword [ebp - 0x454], 0
cmp dword [ebx + 0x1c], 0x10
lea edi, [ebp - 0x3e4]
mov word [ebp - 0x464], ax
lea esi, [ebp - 0x3fc]
lea eax, [ebx + 8]
mov dword [ebp - 0x450], 7
cmovae eax, dword [ebx + 8]
cmp dword [ebp - 0x400], 0x10
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x414]
cmovae eax, dword [ebp - 0x414]
cmp dword [ebp - 0x3b8], 0x10
mov dword [ebp - 0x3b4], eax
lea eax, [ebp - 0x3cc]
cmovae eax, dword [ebp - 0x3cc]
cmp dword [ebp - 0x418], 0x10
mov dword [ebp - 0x3b0], eax
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
cmp dword [ebp - 0x430], 0x10
mov dword [ebp - 0x3ac], eax
lea eax, [ebp - 0x444]
cmovae eax, dword [ebp - 0x444]
cmp dword [ebp - 0x3d0], 0x10
mov dword [ebp - 0x44c], eax
cmovae edi, dword [ebp - 0x3e4]
cmp dword [ebp - 0x3e8], 0x10
cmovae esi, dword [ebp - 0x3fc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [ebp - 0x448]
push dword [ebp - 0x3b4]
push dword [ebp - 0x3b0]
push dword [ebp - 0x3ac]
push dword [ebp - 0x44c]
push edi
push esi
mov esi, dword [ebp - 0x468]
push str.clientver_sclientid_sunionid_sunionid2_sosver_spcid_stype_st_d
push esi
call fcn.0046a6e0
mov edx, dword [ebp - 0x400]
add esp, 0x28
cmp edx, 0x10
jb 0x40c202
mov ecx, dword [ebp - 0x414]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c1f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c425
push edx
push ecx
call fcn.00476a87
add esp, 8
mov edx, dword [ebp - 0x3b8]
mov dword [ebp - 0x404], 0
mov dword [ebp - 0x400], 0xf
mov byte [ebp - 0x414], 0
cmp edx, 0x10
jb 0x40c257
mov ecx, dword [ebp - 0x3cc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c24d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c425
push edx
push ecx
call fcn.00476a87
add esp, 8
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x3bc], 0
mov dword [ebp - 0x3b8], 0xf
mov byte [ebp - 0x3cc], 0
cmp edx, 0x10
jb 0x40c2ac
mov ecx, dword [ebp - 0x42c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c2a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c425
push edx
push ecx
call fcn.00476a87
add esp, 8
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
cmp edx, 0x10
jb 0x40c301
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c2f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c425
push edx
push ecx
call fcn.00476a87
add esp, 8
mov edx, dword [ebp - 0x3d0]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
cmp edx, 0x10
jb 0x40c356
mov ecx, dword [ebp - 0x3e4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c34c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c425
push edx
push ecx
call fcn.00476a87
add esp, 8
mov edx, dword [ebp - 0x3e8]
mov dword [ebp - 0x3d4], 0
mov dword [ebp - 0x3d0], 0xf
mov byte [ebp - 0x3e4], 0
cmp edx, 0x10
jb 0x40c3ab
mov ecx, dword [ebp - 0x3fc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c3a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c425
push edx
push ecx
call fcn.00476a87
add esp, 8
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x3ec], 0
mov dword [ebp - 0x3e8], 0xf
mov byte [ebp - 0x3fc], 0
cmp edx, 0x10
jb 0x40c3f6
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c3ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c425
push edx
push ecx
call fcn.00476a87
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00476a44
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004ca66d
call fcn.004ca66d
call fcn.004ca66d
call fcn.004ca66d
int3