Function at 0x495210
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x57e408
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x50]
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], 0
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x50], eax
mov byte [esp + 0x44], 1
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x4c]
add esi, 0x24
push 0
mov ecx, 0x6d
mov eax, esi
mov byte [esp + 0x48], 2
call fcn.0046ebd0
push 1
mov ecx, 0x68
mov eax, esi
call fcn.0046ebd0
push 0
mov ecx, 0x6e
mov eax, esi
call fcn.0046ebd0
cmp ebp, 1
jne 0x4952fd
push 0x59d024
lea ebx, [ebp + 0x10]
lea eax, [esp + 0x1c]
call fcn.00410570
push str._fvY6
lea ebx, [ebp + 0x1a]
lea eax, [esp + 0x54]
call fcn.00410570
push 0x59d080
lea ebx, [ebp + 5]
lea eax, [esp + 0x20]
call fcn.00410570
jmp 0x495381
cmp ebp, 2
jne 0x495352
mov edx, 0x59af68
lea edi, [esp + 0x50]
call fcn.00410020
mov edx, 0x59afa4
lea edi, [esp + 0x18]
call fcn.00410020
mov edx, 0x59afcc
lea edi, [esp + 0x1c]
call fcn.00410020
push 1
lea ecx, [ebp + 0x6b]
mov eax, esi
call fcn.0046ebd0
push 0
lea ecx, [ebp + 0x66]
mov eax, esi
call fcn.0046ebd0
push 1
lea ecx, [ebp + 0x6c]
mov eax, esi
call fcn.0046ebd0
jmp 0x495381
cmp ebp, 3
jne 0x495381
mov edx, 0x59d090
lea edi, [esp + 0x50]
call fcn.00410020
mov edx, 0x59d0d4
lea edi, [esp + 0x18]
call fcn.00410020
mov edx, 0x59d0f4
lea edi, [esp + 0x1c]
call fcn.00410020
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
push ebp
push str.template_img__d.png
lea edi, [esp + 0x34]
mov byte [esp + 0x4c], 3
call fcn.00410c00
mov ebp, dword [esp + 0x54]
mov eax, edi
push eax
lea ecx, [esp + 0x34]
lea ebx, [ebp + 0x3b4]
push ecx
call fcn.00413170
add esp, 0x10
mov byte [esp + 0x44], 4
cmp dword [esp + 0x54], 0
jne 0x49562a
cmp dword [ebp + 0x388], 2
jne 0x495447
cmp dword [ebp + 0x380], 0x193
mov ecx, 0x6d
mov eax, esi
jne 0x495416
push 1
call fcn.0046ebd0
push 0
mov ecx, 0x68
mov eax, esi
call fcn.0046ebd0
push 1
mov ecx, 0x6e
mov eax, esi
call fcn.0046ebd0
jmp 0x495447
push 0
call fcn.0046ebd0
push 1
mov ecx, 0x68
mov eax, esi
call fcn.0046ebd0
push 0
mov ecx, 0x6e
mov eax, esi
call fcn.0046ebd0
mov edx, str._nN_OgqGr
lea edi, [esp + 0x1c]
call fcn.00410020
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x44], 5
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x44], 6
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x54], eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x4c], 7
call fcn.0048f630
lea ecx, [esp + 0x5c]
mov edx, eax
call fcn.0048fe50
test al, al
je 0x49558f
lea eax, [esp + 0x24]
lea edi, [esp + 0x18]
call fcn.004101e0
lea eax, [esp + 0x20]
lea edi, [esp + 0x50]
call fcn.004101e0
xor edi, edi
lea ebx, [esp + 0x38]
call fcn.004125d0
push eax
lea eax, [esp + 0x38]
push eax
mov ebx, str.datahttprootuser_
mov byte [esp + 0x4c], 8
call fcn.0041a8a0
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ebx, eax
mov byte [esp + 0x54], 9
call fcn.00413170
add esp, 0x10
lea edi, [ebp + 0x3c0]
mov byte [esp + 0x44], 0xa
call fcn.004101e0
mov byte [esp + 0x44], 9
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495545
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 8
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49556a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 7
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49558f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x3c0]
lea edi, [ebp + 0x3c0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4955bb
mov eax, edi
lea edi, [esp + 0x28]
call fcn.004101e0
mov dword [ebp + 0x384], 1
mov byte [esp + 0x44], 6
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4955e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 5
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 0x495605
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49562a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, 0x66
mov eax, esi
call fcn.0046ea90
mov edi, dword [esp + 0x18]
push edi
mov ecx, 0x68
mov eax, esi
call fcn.0046ea90
push edi
mov ecx, 0x6e
mov eax, esi
call fcn.0046ea90
mov ebp, dword [esp + 0x1c]
push ebp
mov ecx, 0x6c
mov eax, esi
call fcn.0046ea90
mov ebx, dword [esp + 0x4c]
lea eax, [esp + 0x28]
call fcn.00494e90
mov byte [esp + 0x44], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49569c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 2
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 0x4956c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x44], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4956e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495707
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49572b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0xc