Function at 0x4590a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48bb21
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [0x4bb38c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4bb38c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0xb4], 0
call fcn.00405d00
add esp, 4
lea edi, [esp + 0x14]
mov byte [esp + 0xb0], 1
call fcn.0040b8a0
mov byte [esp + 0xb0], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459139
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x45916c
lea ecx, [eax - 1]
test ecx, ecx
jl 0x45946b
cmp ecx, eax
jg 0x45946b
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x45916c
push 0x5c
lea edi, [esp + 0x18]
call fcn.00416550
push 7
push str.swl.dat
lea ecx, [esp + 0x1c]
push ecx
call fcn.004164c0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x459216
lea ebx, [esp + 0x18]
call fcn.00405a10
lea edi, [esp + 0x14]
mov byte [esp + 0xb0], 2
call fcn.0040b8a0
mov byte [esp + 0xb0], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4591d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jle 0x459205
lea eax, [ecx - 1]
test eax, eax
jl 0x45946b
cmp eax, ecx
jg 0x45946b
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x459205
push 0x5c
lea edi, [esp + 0x18]
call fcn.00416550
push 7
push str.swl.dat
lea ecx, [esp + 0x1c]
push ecx
call fcn.004164c0
lea edx, [esp + 0x34]
push edx
xor edi, edi
call fcn.004429e0
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x2c]
mov byte [esp + 0xb0], 3
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x38]
call fcn.00442e20
test eax, eax
je 0x4594ea
mov eax, dword [0x4bb38c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4bb38c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0xb0], 4
mov eax, dword [0x4bb38c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4bb38c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0xb4], 5
call fcn.004429e0
push str.DefaultVersion
xor eax, eax
mov byte [esp + 0xb4], 6
push str.Properties
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
call fcn.004433b0
lea edx, [esp + 0x24]
push edx
mov edi, eax
push str.Default
lea eax, [esp + 0x3c]
push eax
call fcn.004431a0
test eax, eax
je 0x4592e0
cmp edi, 0x3c8
ja 0x459395
lea ebx, [esp + 0x20]
call fcn.00405a10
lea edi, [esp + 0x14]
mov byte [esp + 0xb0], 7
call fcn.0040b8a0
mov byte [esp + 0xb0], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459322
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jle 0x459355
lea eax, [ecx - 1]
test eax, eax
jl 0x45946b
cmp eax, ecx
jg 0x45946b
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x459355
push 0x5c
lea edi, [esp + 0x18]
call fcn.00416550
push 7
push str.swl.dat
lea ecx, [esp + 0x1c]
push ecx
call fcn.004164c0
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
add eax, 0x2c
push eax
lea edx, [esp + 0x70]
call fcn.00442e20
test eax, eax
je 0x459392
lea edx, [esp + 0x24]
push edx
push str.Default
lea eax, [esp + 0x74]
push eax
call fcn.004431a0
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x2c], 0
jne 0x45948c
mov eax, dword [esp + 0x30]
test eax, eax
je 0x45948c
cmp eax, dword [esp + 0x2c]
je 0x45948c
mov ecx, dword [eax]
add eax, 8
lea edi, [esp + 0x1c]
mov dword [esp + 0x30], ecx
call fcn.0040b8a0
call fcn.00421b70
mov esi, dword [esp + 0x1c]
push 2
push 0x4a242c
push esi
call fcn.0046df59
add esp, 0xc
test eax, eax
je 0x459482
push 1
push 0x4992d0
push esi
call fcn.0046df59
add esp, 0xc
test eax, eax
je 0x459482
cmp dword [esi - 0xc], 0
jle 0x459475
push 0x3d
push esi
call fcn.0046acda
add esp, 8
test eax, eax
je 0x459475
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x459475
lea ecx, [esp + 0x20]
mov edx, edi
call fcn.00421810
lea edi, [esp + 0x18]
mov byte [esp + 0xb0], 8
call fcn.0040b8a0
mov byte [esp + 0xb0], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x459462
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx + 8]
mov ebx, dword [esp + 0x18]
jmp 0x45947a
push 0x80070057
call fcn.00416be0
mov edi, dword [ebx + 8]
mov ebx, esi
call fcn.00458ac0
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x2c], 0
je 0x45939f
lea ecx, [esp + 0x6c]
push ecx
mov byte [esp + 0xb4], 5
call fcn.00442ab0
mov byte [esp + 0xb0], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4594c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [esp + 0xb0], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4594ea
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0xb4], 0
call fcn.00442ab0
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459527
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4