Function at 0x40f910
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427de0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x436024]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
call fcn.00407680
mov dword [esp + 0x3c], eax
mov ebx, 1
mov byte [eax + 0x15], bl
mov eax, dword [esp + 0x3c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [eax], eax
mov eax, dword [esp + 0x3c]
mov dword [eax + 8], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x40]
call fcn.00410760
mov edx, dword [0x4362a0]
mov eax, dword [edx + 0xc]
mov ecx, 0x4362a0
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x50], bl
mov edx, dword [0x4362a0]
mov eax, dword [edx + 0xc]
mov ecx, 0x4362a0
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x50], 2
test byte [0x436680], bl
jne 0x40f9d0
or dword [0x436680], ebx
call fcn.00401bc0
push 0x428640
call fcn.0042585b
add esp, 4
mov esi, 0x167
lea edi, [esp + 0x2c]
mov eax, 0x436684
call fcn.00404a00
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
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 0x40fa0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40fb24
mov edx, dword [0x4362a0]
mov eax, dword [edx + 0xc]
mov ecx, 0x4362a0
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x50], 3
test byte [0x436680], bl
jne 0x40fa52
or dword [0x436680], ebx
call fcn.00401bc0
push 0x428640
call fcn.0042585b
add esp, 4
push ecx
mov esi, 0x167
mov edi, esp
mov eax, 0x436684
mov dword [esp + 0x30], esp
call fcn.00404a00
lea ecx, [esp + 0x20]
call fcn.004155f0
add esp, 4
lea ecx, [esp + 0x28]
push 0x42e4bc
push ecx
lea ecx, [esp + 0x24]
call fcn.00406190
push eax
lea edx, [esp + 0x38]
push edx
mov ebx, 0x42e4d0
mov byte [esp + 0x60], 4
call fcn.004060b0
add esp, 0x10
mov byte [esp + 0x50], 5
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00407530
mov byte [esp + 0x50], 4
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 0x40fada
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40faff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fb24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x2c]
push edx
lea ebx, [esp + 0x2c]
call fcn.00406000
mov byte [esp + 0x58], 6
mov eax, dword [eax]
push eax
lea eax, [esp + 0x38]
push 0x1f4
push eax
call fcn.00419080
add esp, 0x14
lea ebx, [esp + 0x14]
mov byte [esp + 0x50], 7
call fcn.00406600
mov byte [esp + 0x50], 6
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 0x40fb83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fba8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
push eax
lea edx, [esp + 0x20]
push 0x1f4
push edx
call fcn.00419080
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov byte [esp + 0x50], 8
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x1c]
push 0x3c
push ecx
call fcn.00419080
add esp, 0xc
lea edx, [esp + 0x20]
push edx
mov esi, str.UserDescription
mov byte [esp + 0x54], 9
call fcn.0040d290
mov byte [esp + 0x50], 0xa
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x40fc11
mov eax, esi
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004066f0
mov eax, dword [esp + 0x14]
push eax
lea edx, [esp + 0x30]
push edx
mov eax, esi
call fcn.004145f0
add esp, 8
mov esi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0xb
call fcn.00411660
mov ebx, eax
mov eax, esi
call fcn.00406600
mov byte [esp + 0x50], 0xa
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 0x40fc64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 9
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 0x40fc89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
cmp dword [edi - 0xc], 0
je 0x40fd3d
lea ecx, [esp + 0x20]
push ecx
mov esi, str.Account
call fcn.0040d290
mov byte [esp + 0x50], 0xc
cmp dword [edi - 4], 1
mov esi, dword [edi - 0xc]
jle 0x40fcc5
mov edx, esi
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004066f0
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push edi
push ecx
mov eax, esi
call fcn.004145f0
add esp, 8
mov esi, eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0xd
call fcn.00411660
mov ebx, eax
mov eax, esi
call fcn.00406600
mov byte [esp + 0x50], 0xc
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 0x40fd18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 9
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 0x40fd3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
cmp dword [edi - 0xc], 0
je 0x40fdf1
lea ecx, [esp + 0x20]
push ecx
mov esi, str.Contact
call fcn.0040d290
mov byte [esp + 0x50], 0xe
cmp dword [edi - 4], 1
mov esi, dword [edi - 0xc]
jle 0x40fd79
mov edx, esi
push edx
lea eax, [esp + 0x20]
push eax
call fcn.004066f0
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push edi
push ecx
mov eax, esi
call fcn.004145f0
add esp, 8
mov esi, eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0xf
call fcn.00411660
mov ebx, eax
mov eax, esi
call fcn.00406600
mov byte [esp + 0x50], 0xe
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 0x40fdcc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 9
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 0x40fdf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4362a0]
mov eax, dword [edx + 0xc]
mov ecx, 0x4362a0
mov dword [esp + 0x20], 0
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x50], 0x10
mov ecx, dword [esp + 0x3c]
mov esi, dword [ecx]
lea ebx, [esp + 0x38]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
test ebx, ebx
mov edi, dword [esp + 0x3c]
je 0x40fe37
lea edx, [esp + 0x38]
cmp ebx, edx
je 0x40fe3d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x40ffa5
cmp dword [esp + 0x20], 0
je 0x40fe5d
push 1
push 0x42ee88
lea eax, [esp + 0x18]
push eax
call fcn.00407340
test ebx, ebx
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jne 0x40fe69
call edi
cmp esi, dword [ebx + 4]
jne 0x40fe70
call edi
mov edx, dword [esi + 0xc]
test edx, edx
jne 0x40fe7b
xor eax, eax
jmp 0x40fe91
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40fe80
sub eax, edi
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push eax
push edx
lea ecx, [esp + 0x18]
push ecx
call fcn.00407340
push 1
push 0x42ee8c
lea edx, [esp + 0x18]
push edx
call fcn.00407340
cmp esi, dword [ebx + 4]
jne 0x40feb5
call edi
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00407340
mov edx, dword [0x4362a0]
mov eax, dword [edx + 0xc]
add dword [esp + 0x20], 1
mov ecx, 0x4362a0
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x50], 0x11
mov edx, dword [0x4362a0]
mov eax, dword [edx + 0xc]
mov ecx, 0x4362a0
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x50], 0x12
cmp esi, dword [ebx + 4]
jne 0x40ff0b
call edi
mov eax, dword [esi + 0xc]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00419500
add esp, 8
cmp esi, dword [ebx + 4]
jne 0x40ff23
call edi
mov esi, dword [esi + 0x10]
lea edx, [esp + 0x28]
push esi
push edx
call fcn.00419500
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
push esi
push ebx
push str._s___s
push str.bugreport
call fcn.00419910
lea eax, [esi - 0x10]
add esp, 0x18
mov byte [esp + 0x50], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x50], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x30]
call fcn.00407780
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
jmp 0x40fe27
mov edx, dword [0x4362a0]
mov eax, dword [edx + 0xc]
mov ecx, 0x4362a0
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x50], 0x13
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.00419500
mov ebx, dword [esp + 0x34]
push ebx
push str.sending_server_data__s
push str.bugreport
call fcn.00419910
mov eax, dword [esi - 0xc]
mov edx, dword [ebp + 8]
add esp, 0x14
push eax
push esi
push 0
push 0
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [esp + 0x2c], eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x50], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41001f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x50], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410040
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 8
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 0x410065
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41008a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 1
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 0x4100af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0
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 0x4100d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov esi, ecx
push edx
push esi
lea ecx, [esp + 0x40]
push ecx
mov edi, esi
call fcn.00411bc0
mov edx, dword [esp + 0x3c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x30]
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14