Function at 0x498f60
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5a479b
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x10c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x114], edi
mov ebx, dword [esp + 0x11c]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x498fd6
lea eax, [ebx - 0x10]
mov dword [esp + 0x114], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498fcf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x49962b
or ebp, 0xffffffff
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x64], edi
lea ecx, [esp + 0x44]
push ecx
lea eax, [ebp + 2]
mov ecx, ebx
mov byte [esp + 0x118], 1
call fcn.004d0930
cmp eax, edi
jge 0x499040
lea esi, [esp + 0x5c]
call fcn.004d04e0
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.004d04e0
lea eax, [ebx - 0x10]
mov dword [esp + 0x114], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jmp 0x498fc3
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0xec]
push ecx
mov byte [esp + 0x118], 2
call fcn.00497720
mov byte [esp + 0x114], 3
call fcn.004642e0
mov dword [esp + 0x20], eax
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x20]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x20]
mov dword [eax], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 8], eax
mov dword [esp + 0x24], edi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x48]
mov byte [esp + 0x118], 4
mov dword [esp + 0x1c], edi
call fcn.004d05c0
test eax, eax
je 0x4994e2
lea ebx, [esp + 0x14]
call fcn.004192d0
mov edi, eax
call fcn.00419350
mov esi, dword [esp + 0x14]
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x4994c3
jl 0x499647
movzx eax, word [esi]
movzx edx, ax
cmp dx, 0x3b
je 0x4994c3
test ecx, ecx
jl 0x499647
movzx eax, ax
cmp ax, 0x5b
jne 0x499286
lea eax, [ecx - 1]
test eax, eax
jl 0x499647
cmp eax, ecx
jg 0x499647
movzx eax, word [esi + eax*2]
cmp ax, 0x5d
jne 0x499286
cmp dword [esp + 0x18], 0
jle 0x4991d0
lea eax, [esp + 0x80]
push eax
call fcn.00497720
mov ecx, dword [esp + 0x124]
push ecx
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x120], 5
call fcn.0049a580
test eax, eax
je 0x4991bc
mov ebp, dword [esp + 0x120]
mov ecx, dword [ebp + 4]
lea edx, [esp + 0xcc]
push edx
lea ebx, [esp + 0x90]
mov esi, ebp
mov dword [esp + 0xac], ecx
mov dword [esp + 0xa8], ebp
call fcn.0049b630
lea esi, [esp + 0xa4]
mov edi, eax
call fcn.004cba20
test al, al
je 0x4991bc
mov eax, ebx
push eax
mov ecx, ebp
call fcn.0049b1a0
lea ebx, [esp + 0x80]
mov esi, eax
call fcn.00498b90
lea esi, [esp + 0x80]
mov byte [esp + 0x114], 4
call fcn.00499660
lea eax, [esp + 0x1c]
call fcn.00420c40
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
push ecx
lea ecx, [esp + 0x18]
mov edx, esp
mov dword [esp + 0x2c], esp
push ecx
add eax, 0xfffffffe
mov ecx, 1
call fcn.00403eb0
push str.strTitle
lea edi, [esp + 0xbc]
call fcn.0049c0b0
add esp, 8
lea edx, [esp + 0x9c]
push edx
mov edi, eax
mov byte [esp + 0x118], 6
call fcn.0049c130
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ebx, [esp + 0xdc]
mov byte [esp + 0x11c], 7
call fcn.004203d0
lea esi, [esp + 0x9c]
call fcn.004d3440
mov byte [esp + 0x114], 4
mov eax, dword [esp + 0xb8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49927c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x18], 1
jmp 0x4994c3
lea ecx, [esp + 0x2c]
push ecx
mov ecx, str.strTitle
call fcn.00404460
mov edi, dword [esp + 0x20]
lea edx, [esp + 0xac]
push edx
lea ebx, [esp + 0x30]
lea esi, [esp + 0x20]
call fcn.004204f0
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x4992be
lea ecx, [esp + 0x1c]
cmp eax, ecx
je 0x4992c3
call fcn.00578ff3
cmp dword [esi + 4], edi
mov eax, dword [esp + 0x2c]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4992e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4994c3
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jle 0x4994c3
push 0x3d
push eax
call fcn.00578331
add esp, 8
test eax, eax
je 0x4994c3
sub eax, dword [esp + 0x14]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x4994c3
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x14]
call fcn.00403560
mov ebx, eax
mov byte [esp + 0x114], 8
call fcn.004192d0
mov edi, eax
call fcn.00419350
mov eax, dword [eax]
sub eax, 0x10
call fcn.00403ce0
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0x114], 0xa
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49937f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 1]
lea esi, [esp + 0x40]
lea edx, [esp + 0x14]
call fcn.00403540
mov ebx, eax
mov byte [esp + 0x114], 0xb
call fcn.004192d0
mov edi, eax
call fcn.00419350
mov eax, dword [eax]
sub eax, 0x10
call fcn.00403ce0
lea edi, [eax + 0x10]
mov dword [esp + 0xc0], edi
mov bl, 0xd
mov byte [esp + 0x114], bl
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4993e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
lea ebp, [edi - 0x10]
mov eax, ebp
mov dword [esp + 0xc0], esp
mov esi, esp
call fcn.00403ce0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x118], 0xe
mov eax, dword [esp + 0x3c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
mov dword [esp + 0x30], eax
call fcn.00403ce0
add eax, 0x10
mov dword [esi], eax
lea esi, [esp + 0xcc]
mov byte [esp + 0x11c], bl
call fcn.004751c0
add esp, 8
lea ecx, [esp + 0x30]
push ecx
mov edi, eax
mov byte [esp + 0x118], 0xf
call fcn.00475260
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
lea ebx, [esp + 0xe8]
mov byte [esp + 0x11c], 0x10
call fcn.004203d0
lea esi, [esp + 0x30]
call fcn.004d3440
lea esi, [esp + 0xc4]
call fcn.004d3440
mov byte [esp + 0x114], 0xa
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49949e
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, dword [esp + 0x28]
mov byte [esp + 0x114], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4994c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea eax, [esp + 0x48]
call fcn.004d05c0
test eax, eax
jne 0x4990bb
mov ebx, dword [esp + 0x11c]
xor edi, edi
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], edi
jne 0x499590
cmp dword [esp + 0x18], edi
jle 0x499590
lea eax, [esp + 0x80]
push eax
call fcn.00497720
mov ecx, dword [esp + 0x124]
push ecx
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x120], 0x11
call fcn.0049a580
test eax, eax
je 0x49957d
mov ebp, dword [esp + 0x120]
mov ecx, dword [ebp + 4]
lea edx, [esp + 0xac]
push edx
lea ebx, [esp + 0x90]
mov esi, ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ebp
call fcn.0049b630
lea esi, [esp + 0x30]
mov edi, eax
call fcn.004cba20
test al, al
je 0x49957b
mov eax, ebx
push eax
mov ecx, ebp
call fcn.0049b1a0
lea ebx, [esp + 0x80]
mov esi, eax
call fcn.00498b90
xor edi, edi
lea esi, [esp + 0x80]
call fcn.00499660
mov ebx, dword [esp + 0x11c]
lea esi, [esp + 0x5c]
call fcn.004d04e0
or ebp, 0xffffffff
lea eax, [esp + 0x1c]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov byte [esp + 0x114], 3
call fcn.00420770
lea esi, [esp + 0xec]
call fcn.00499660
mov byte [esp + 0x114], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4995ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x5c]
call fcn.004d04e0
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.004d04e0
lea eax, [ebx - 0x10]
mov dword [esp + 0x114], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x499626
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0xc
push 0x80070057
call fcn.00404550
int3