Function at 0x10037590
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1026759c
mov eax, dword fs:[0]
push eax
mov eax, 0x4588
call fcn.1025dc00
mov eax, dword [0x10314008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x4588], edi
mov dword [ebp - 0x4590], 0
mov dword [ebp - 4], 0
or eax, 0xffffffff
cmp dword [ebp + 8], 0
jne 0x100375ed
mov esi, 0xc0011001
jmp 0x100379f3
lea ecx, [ebp - 0x64]
call fcn.1006bc10
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4584]
mov ecx, dword [ebp + 8]
push eax
call fcn.10074100
mov byte [ebp - 4], 2
xor eax, eax
lea ecx, [ebp - 0x3466]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10037637
sub ecx, edx
lea eax, [ebp - 0x3466]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.10004d70
mov byte [ebp - 4], 3
cmp dword [ebp - 0x3c], 0
je 0x100376a3
push 0xffffffffffffffff
push 0x2f
lea ecx, [ebp - 0x4c]
call fcn.10008ac0
push 0xffffffffffffffff
inc eax
lea ecx, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10008a20
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x64]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10008d40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.10004cc0
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100376e7
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x100376e7
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x64]
push 1
push eax
call fcn.10073e20
mov esi, 0xc0011126
jmp 0x100379c9
xorps xmm0, xmm0
push 0x1c
movlpd qword [ebp - 0x34], xmm0
call fcn.1025b3f7
mov ecx, eax
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 5
xorps xmm0, xmm0
push ecx
movups xmmword [ecx], xmm0
mov edx, esp
mov dword [ebp - 0x4594], esp
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], 0
mov dword [edx], 0
mov dword [edx + 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10037732
lock inc dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], eax
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
call fcn.10008180
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
push dword [ebp - 0x4594]
mov dword [ebp - 0x34], 0
push eax
mov dword [ebp - 0x30], 0
call fcn.1003c8a0
mov byte [ebp - 4], 7
lea esi, [edi + 0x40]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x2c], esi
mov dword [eax + 8], edi
test esi, esi
je 0x10037793
mov eax, dword [esi]
test eax, eax
je 0x10037793
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 8
mov eax, dword [edi + 0x3c]
test eax, eax
jne 0x10037934
push 0xa4
call fcn.1025b3f7
mov edi, eax
mov dword [ebp - 0x4594], edi
mov byte [ebp - 4], 9
push 0xa4
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
push 0x11
push str.LogDownloadThread
mov word [ebp - 0x28], ax
call fcn.10004d70
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
mov dword [ebp - 0x4590], 1
call fcn.100642f0
mov dword [ebp - 4], 0xb
mov edi, dword [ebp - 0x4588]
mov dword [edi + 0x3c], eax
mov dword [ebp - 4], 8
mov eax, 1
mov dword [ebp - 0x4590], eax
lea ecx, [ebp - 0x28]
and eax, 0xfffffffe
mov dword [ebp - 0x4590], eax
call fcn.10004cc0
mov ecx, dword [edi + 0x3c]
push 3
call fcn.100646e0
test eax, eax
jne 0x10037923
cmp dword [0x1031422c], eax
je 0x10037919
push eax
mov ecx, 0x10314228
call fcn.10061e90
mov eax, dword [0x1031422c]
cmp byte [eax + 0x54], 0
je 0x10037919
cmp dword [eax + 0x58], 3
jb 0x10037919
mov al, byte [eax + 0x5c]
mov byte [ebp - 0x4589], al
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x28]
push 0x15
push 0x102b2398
call fcn.10004d70
push 0x6fe
push str.RC::RCSoftInfoDataMgr::InitLogoCommandThread
push 0x102b21a0
lea eax, [ebp - 0x28]
mov ecx, 0x10314228
push eax
push 3
call fcn.10062830
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [ebp - 0x4589], 0
je 0x1003790d
lea eax, [ebp - 0x28]
mov ecx, 0x10314228
push eax
call fcn.10062b70
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
call fcn.10004cc0
mov edi, dword [ebp - 0x30]
mov eax, 0xc0011103
jmp 0x10037977
mov eax, dword [edi + 0x3c]
test eax, eax
jne 0x10037934
mov edi, dword [ebp - 0x30]
mov eax, 0xc0011001
jmp 0x10037977
mov edi, dword [ebp - 0x30]
sub esp, 8
mov dword [ebp - 0x4594], esp
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
test edi, edi
je 0x10037957
lock inc dword [edi + 4]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x4588]
mov ecx, dword [ecx + 0x3c]
call fcn.10064ab0
xor eax, eax
mov dword [ebp - 0x4588], eax
mov byte [ebp - 4], 7
test esi, esi
je 0x10037999
mov eax, dword [esi]
test eax, eax
je 0x10037992
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 3
test edi, edi
je 0x100379c3
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x100379c3
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x100379c3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [ebp - 0x4588]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.10004cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4584]
call fcn.100087b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.10004cc0
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10037a20
lock xadd dword [edi + 4], eax
jne 0x10037a20
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
dec eax
jne 0x10037a20
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1025b3e6
mov esp, ebp
pop ebp
ret 8