Function at 0x475180
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4db05b
mov eax, dword fs:[0]
push eax
mov eax, 0x1068
call fcn.004c4260
mov eax, dword [0x513330]
xor eax, esp
mov dword [esp + 0x1060], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x107c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x108c]
mov edx, dword [0x51856c]
mov ebp, dword [esp + 0x1090]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
xor ebx, ebx
lea edx, [esp + 0x2c]
mov dword [esp + 0x1084], ebx
mov ecx, dword [ebp]
push edx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x27], bl
mov byte [esp + 0x1f], 1
call fcn.00405a00
mov byte [esp + 0x1084], 1
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x475279
mov byte [esp + 0x1084], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475249
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1084], 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47569e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x47569e
lea ecx, [esp + 0x3c]
push ecx
call fcn.00484570
mov byte [esp + 0x1084], 2
mov edx, dword [ebp]
cmp edx, ebx
je 0x4752b4
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x475297
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x60]
call fcn.00405e30
xor ebx, ebx
lea esi, [esp + 0x3c]
call fcn.00484a00
call fcn.004849a0
lea edi, [esp + 0x74]
mov ecx, esi
call fcn.00484da0
test eax, eax
jne 0x475314
call fcn.004847c0
mov byte [esp + 0x1084], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4752fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1084], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
jmp 0x475257
cmp byte [esp + 0x1094], bl
je 0x47532c
mov ecx, ebp
call fcn.00474f10
test al, al
je 0x475683
lea edi, [esp + 0x74]
lea ecx, [esp + 0x3c]
call fcn.00484da0
test eax, eax
jne 0x47535f
call fcn.004847c0
mov byte [esp + 0x1084], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4752f1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x78]
call fcn.0045b6f0
lea edx, [esp + 0x24]
push edx
mov ecx, str.SCRIPTVER
mov byte [esp + 0x1088], 3
call fcn.00405a00
mov byte [esp + 0x1084], 4
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x475671
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], ebx
jl 0x475671
push ecx
push eax
call fcn.004a59da
add esp, 8
cmp eax, ebx
je 0x475671
sub eax, dword [esp + 0x1c]
sar eax, 1
jne 0x475671
push 0x4ee44c
push 0x4f03dc
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
push ecx
xor bl, bl
call fcn.00478330
add esp, 0x10
mov byte [esp + 0x1084], 5
mov ebp, dword [esp + 0x34]
lea edi, [ebp + 0x30]
call fcn.004082a0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1084], 4
call fcn.00405f50
mov ebx, edi
call fcn.0040c620
mov ebx, eax
call fcn.0040c6a0
lea edi, [esp + 0x74]
lea ecx, [esp + 0x3c]
call fcn.00484da0
test eax, eax
je 0x475640
lea esp, [esp]
lea ebx, [esp + 0x74]
lea eax, [esp + 0x1c]
call fcn.00440ea0
lea ebx, [esp + 0x1c]
call fcn.0040c620
mov ebx, eax
call fcn.0040c6a0
mov edx, dword [esp + 0x1c]
cmp dword [edx - 0xc], 0
je 0x47562b
mov edx, str.SITE
lea edi, [esp + 0x24]
call fcn.00405c20
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x475513
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jl 0x475513
push ecx
push eax
call fcn.004a59da
add esp, 8
test eax, eax
je 0x475513
mov ecx, dword [esp + 0x1c]
sub eax, ecx
sar eax, 1
jne 0x475513
mov eax, dword [esp + 0x24]
mov eax, dword [eax - 0xc]
push 0x22
push ecx
lea esi, [eax + 1]
call fcn.004a651b
add esp, 8
test eax, eax
jne 0x4754bd
or eax, 0xffffffff
jmp 0x4754c3
sub eax, dword [esp + 0x1c]
sar eax, 1
lea ecx, [esp + 0x1c]
push ecx
sub eax, esi
mov ecx, esi
lea edx, [esp + 0x3c]
call fcn.0040b870
lea edi, [esp + 0x28]
mov byte [esp + 0x1084], 6
call fcn.004082a0
mov byte [esp + 0x1084], 4
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47550e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x23], 1
mov edx, str.BEGIN
lea edi, [esp + 0x24]
call fcn.00405c20
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x47559e
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jl 0x47559e
push ecx
push eax
call fcn.004a59da
add esp, 8
test eax, eax
je 0x47559e
sub eax, dword [esp + 0x1c]
sar eax, 1
jne 0x47559e
cmp byte [esp + 0x23], 0
je 0x47559e
push 0x20
mov byte [esp + 0x1f], 0
call fcn.004a5616
add esp, 4
mov dword [esp + 0x34], eax
mov byte [esp + 0x1084], 7
test eax, eax
je 0x47558b
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.00474ac0
mov byte [esp + 0x1084], 4
mov dword [esp + 0x30], eax
jmp 0x47562b
xor eax, eax
mov byte [esp + 0x1084], 4
mov dword [esp + 0x30], eax
jmp 0x47562b
mov edx, str.END_
lea edi, [esp + 0x24]
call fcn.00405c20
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x475617
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jl 0x475617
push ecx
push eax
call fcn.004a59da
add esp, 8
test eax, eax
je 0x475617
sub eax, dword [esp + 0x1c]
sar eax, 1
jne 0x475617
cmp byte [esp + 0x1b], 0
mov ebx, dword [esp + 0x30]
je 0x4755f6
test ebx, ebx
je 0x4755f6
mov esi, ebx
call fcn.00474ed0
mov byte [esp + 0x23], 0
mov byte [esp + 0x1b], 1
jmp 0x47562b
mov edi, dword [esp + 0x28]
mov esi, ebp
call fcn.00451d50
mov dword [eax], ebx
mov dword [esp + 0x30], 0
mov byte [esp + 0x23], 0
mov byte [esp + 0x1b], 1
jmp 0x47562b
cmp byte [esp + 0x1b], 0
jne 0x47562b
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x1c]
call fcn.00474c80
lea edi, [esp + 0x74]
lea ecx, [esp + 0x3c]
call fcn.00484da0
test eax, eax
jne 0x475430
lea ecx, [esp + 0x24]
call fcn.00405f50
lea ecx, [esp + 0x1c]
call fcn.00405f50
lea ecx, [esp + 0x3c]
call fcn.004847c0
lea eax, [esp + 0x2c]
call fcn.00452320
lea ecx, [esp + 0x28]
call fcn.00405f50
mov al, 1
jmp 0x4756a0
lea ecx, [esp + 0x24]
call fcn.00405f50
lea ecx, [esp + 0x1c]
call fcn.00405f50
lea ecx, [esp + 0x3c]
call fcn.004847c0
lea eax, [esp + 0x2c]
call fcn.00452320
lea ecx, [esp + 0x28]
call fcn.00405f50
xor al, al
mov ecx, dword [esp + 0x107c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1060]
xor ecx, esp
call fcn.004a52a5
add esp, 0x1074
ret 0xc