Function at 0x100591b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b00cf
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x100dbc1c]
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 ebx, ecx
mov dword [ebp - 0x28], 0
mov eax, dword [ebx + 0x144]
push dword [eax + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005952a
mov eax, dword [ebx + 0x144]
add eax, 0x10
push eax
call fcn.1003d360
add esp, 4
test eax, eax
je 0x1005952a
mov ecx, eax
call fcn.1000b290
mov ecx, dword [eax]
mov dword [ebx + 0x70], ecx
mov eax, dword [eax + 4]
mov dword [ebx + 0x74], eax
mov eax, dword [ebx + 0x148]
mov dword [ebx + 0x70], eax
lea eax, [ebp - 0x30]
push eax
call fcn.1003b6a0
add esp, 4
cmp dword [eax], 0
mov ecx, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], ecx
je 0x10059288
lea eax, [ebp - 0x38]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 1
mov dword [ebp - 0x28], 3
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x10059283
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 0x21], 1
jmp 0x1005928c
mov ecx, 3
mov byte [ebp - 0x21], 0
mov esi, dword [ebp - 0x34]
or edi, 0xffffffff
test esi, esi
je 0x100592ba
test cl, 2
je 0x100592ba
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100592ba
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x100592ba
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100592e7
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100592e7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x100592e7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x21], 0
je 0x1005938a
lea eax, [ebp - 0x30]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 2
call fcn.10015e70
mov esi, eax
push str.bannersize:x
push esi
mov byte [ebp - 4], 3
call fcn.10012080
add esp, 8
mov ecx, esi
push dword [ebx + 0x70]
call fcn.100524f0
push 0x100b81d4
push esi
call fcn.10012080
add esp, 8
mov ecx, esi
push dword [ebx + 0x74]
call fcn.100524f0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x14]
lea ecx, [ebp - 0xd0]
call fcn.10012280
mov esi, dword [ebp - 0x2c]
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1005938a
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1005938a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1005938a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebx + 0x190]
test eax, eax
jne 0x1005946f
push 0x84
call fcn.10076018
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x100593be
mov ecx, eax
call fcn.100494f0
mov ecx, eax
jmp 0x100593c0
xor ecx, ecx
mov eax, dword [ebx + 4]
mov dword [ebx + 0x190], ecx
mov dword [ecx + 0x74], eax
mov eax, dword [ebx + 0x144]
mov ecx, dword [ebx + 0x190]
add eax, 0x10
push eax
add ecx, 0x78
mov dword [ebp - 4], 0xffffffff
call fcn.10009ac0
mov ecx, dword [ebx + 0x190]
mov eax, dword [ebx + 0x148]
mov edx, dword [ebx + 0x14c]
mov dword [ecx + 0x7c], eax
mov dword [ecx + 0x80], edx
mov esi, dword [ebx + 0x190]
call fcn.10053380
cmp dword [eax + 0x30], 0
jne 0x10059423
call fcn.10053380
mov dword [eax + 0x30], 0
call fcn.10053380
push dword [ebp - 0x28]
lea ecx, [esi + 0x20]
push ecx
push eax
push 0x100dd6b0
push 0x100e171c
call fcn.1002a320
add esp, 0x14
movzx eax, ax
mov ecx, esi
push 0
push eax
push 0
push 0x80000
push SysReAllocString
push 0
push 0
push 0
call fcn.1002b190
mov eax, dword [ebx + 0x190]
test eax, eax
je 0x1005952a
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1005952a
push 0
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push 0
push 0x30
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x74]
sub ecx, dword [ebx + 0x14c]
mov esi, dword [ebp - 0x18]
sub ecx, eax
sub esi, dword [ebx + 0x148]
mov edx, dword [ebx + 0x190]
push 0x50
push eax
push dword [ebx + 0x70]
lea eax, [ecx - 0x19]
push eax
lea eax, [esi - 0x12]
push eax
push 0xffffffffffffffff
push dword [edx + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [ebp - 0x28]
call fcn.1000ce60
mov eax, dword [ebx + 0x144]
mov dword [ebp - 4], 5
push dword [eax + 0x14]
lea eax, [ebp - 0x28]
push 0x100b81d8
push eax
call fcn.10021c80
mov esi, dword [ebp - 0x28]
add esp, 0xc
push 0
push 0
push 1
push 0
push esi
call fcn.10021db0
mov ecx, eax
call fcn.1004fb80
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x1005952a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.100763b4
mov esp, ebp
pop ebp
ret