Function at 0x45d050
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
push ebx
push edi
push str.OnThreadReturn_LNCH:_d__d
mov esi, ecx
mov dword [ebp - 4], edi
mov dword [ebp + 0xc], 0
call fcn.0045f340
push eax
call fcn.0042d870
mov eax, dword [esi + 0x38]
add esp, 0x10
test eax, eax
je 0x45d099
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x4a54]
test ecx, ecx
je 0x45d0c6
push 0x64
call fcn.0043ceb0
mov ecx, dword [esi + 0x4a54]
test ecx, ecx
je 0x45d0bc
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0x4a54], 0
test edi, edi
jne 0x45d26e
call fcn.0045f340
cmp dword [eax + 0x10e8], edi
jne 0x45d284
push ebx
call fcn.0045f340
lea ecx, [eax + 0x11a0]
call fcn.00432cb0
test bl, 1
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x45d1a3
call fcn.0046e900
add eax, 0x10
push eax
push str.Config_
call fcn.0045f340
add eax, 0x1064
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00428550
add esp, 0xc
push eax
lea edx, [ebp - 8]
push edx
call fcn.004284d0
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d150
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x556338
push 0x53d38c
lea ecx, [ebp - 8]
call fcn.00423850
mov edi, dword [ebp - 8]
push edi
call ebx
test eax, eax
je 0x45d187
push edi
push str.LocalFileExist:__s
call fcn.0045f340
push eax
call fcn.0042d870
add esp, 0xc
mov dword [ebp + 0xc], 1
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d1a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [ebp + 0x10], 2
je 0x45d24e
call fcn.0046e900
add eax, 0x14
push eax
push str.Config_
call fcn.0045f340
add eax, 0x1064
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00428550
add esp, 0xc
push eax
lea edx, [ebp + 0x10]
push edx
call fcn.004284d0
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d1fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x556338
push 0x53d38c
lea ecx, [ebp + 0x10]
call fcn.00423850
mov edi, dword [ebp + 0x10]
push edi
call ebx
test eax, eax
je 0x45d232
push edi
push str.LocalFileExist:__s
call fcn.0045f340
push eax
call fcn.0042d870
add esp, 0xc
or dword [ebp + 0xc], 2
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d24e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [ebp + 0xc], 3
je 0x45d284
push str.Success_By_Local
call fcn.0045f340
push eax
call fcn.0042d870
add esp, 8
mov dword [ebp - 4], 1
lea edi, [esi + 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x4a50], 2
jmp 0x45d298
lea edi, [esi + 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x4a50], 3
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [0x56c260]
mov eax, dword [edx + 0xc]
mov ecx, 0x56c260
call eax
add eax, 0x10
xor ebx, ebx
mov dword [ebp + 0x10], eax
cmp dword [ebp - 4], ebx
je 0x45d7ec
mov ecx, dword [ebp + 0xc]
and ecx, 2
push ecx
mov ecx, esi
call fcn.0045a170
push ecx
mov ecx, esp
push 0x53cbd0
call fcn.0042ad10
push ecx
mov ecx, esp
push 0x546434
call fcn.0042ad10
lea edx, [ebp - 0xc]
push edx
call fcn.00467040
mov ecx, eax
call fcn.004692a0
mov ebx, eax
call fcn.0046e900
push ebx
lea ecx, [eax + 8]
call fcn.00423fc0
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d327
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
push str.bupdateclose
call fcn.0042ad10
lea ecx, [ebp - 8]
push ecx
call fcn.00467040
mov ecx, eax
call fcn.00467370
mov edx, dword [ebp - 8]
push 0x53e1ac
push edx
call fcn.004fe94a
add esp, 8
test eax, eax
jne 0x45d38b
call fcn.0045f340
mov eax, dword [eax + 0x104c]
mov ecx, dword [ebp - 8]
push eax
push ecx
push str.setUpdateMode_is_close__s__current__d_
call fcn.0045f340
push eax
call fcn.0042d870
add esp, 0x10
call fcn.0045f340
mov dword [eax + 0x104c], 3
mov edx, dword [0x56c260]
mov eax, dword [edx + 0xc]
mov ecx, 0x56c260
call eax
add eax, 0x10
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.004040f0
call fcn.0045f340
cmp dword [eax + 0x104c], 3
je 0x45d41c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0x4a50]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 2
je 0x45d3e2
cmp ebx, 4
jne 0x45d41c
lea ecx, [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.0045c6b0
jmp 0x45d3f4
mov eax, dword [ebp + 0xc]
and eax, 1
push eax
lea ecx, [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.0045c770
push eax
lea ecx, [ebp - 4]
call fcn.00423fc0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45d41c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
cmp dword [ecx - 0xc], 0
je 0x45d799
call fcn.00469cd0
lea edx, [ebp - 4]
push edx
lea ecx, [eax + 4]
call fcn.00423fc0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0045f340
lea ecx, [eax + 0x11a0]
call fcn.00432c10
call fcn.0046e900
add eax, 0x10
push eax
push str.Config_
call fcn.0045f340
add eax, 0x1064
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00428550
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
push ecx
call fcn.004284d0
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45d4a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x556338
push 0x53d38c
lea ecx, [ebp + 0xc]
call fcn.00423850
mov ebx, dword [ebp + 0xc]
push 0
push ecx
add ebx, 0xfffffff0
mov edi, esp
push ebx
call fcn.00403b50
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0045f340
lea ecx, [eax + 0x1130]
call fcn.00437460
xor edi, edi
cmp eax, edi
jne 0x45d5c5
call fcn.0045f340
mov esi, dword [sym.imp.USER32.dll_IsWindow]
cmp dword [eax + 4], edi
je 0x45d54c
call fcn.0045f340
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
push edx
call esi
test eax, eax
je 0x45d54c
mov eax, dword [0x570980]
push 0xa5
push eax
lea ecx, [ebp + 0x10]
call fcn.00423560
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
mov dword [ebp + 0xc], edi
call fcn.0045f340
mov ecx, dword [eax + 4]
call fcn.00455380
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], 4
call fcn.0045f340
mov ecx, dword [eax + 4]
call fcn.00455100
call fcn.0045f340
cmp dword [eax + 8], edi
je 0x45d5ac
call fcn.0045f340
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 4]
push edx
call esi
test eax, eax
je 0x45d5ac
mov eax, dword [0x570980]
push 0x9e
push eax
lea ecx, [ebp + 0x10]
call fcn.00423560
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
mov dword [ebp + 0xc], edi
call fcn.0045f340
mov ecx, dword [eax + 8]
call fcn.00457eb0
lea eax, [ebp + 0xc]
push edi
push eax
mov dword [ebp + 0xc], 4
call fcn.0045f340
mov ecx, dword [eax + 8]
call fcn.00457ae0
push 1
push 3
call fcn.0045f340
lea ecx, [eax + 0x11a0]
call fcn.00432bf0
jmp 0x45d77e
call fcn.0045f340
cmp dword [eax + 4], edi
mov edi, dword [sym.imp.USER32.dll_IsWindow]
je 0x45d5ff
call fcn.0045f340
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
push edx
call edi
test eax, eax
je 0x45d5ff
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], 3
call fcn.0045f340
mov ecx, dword [eax + 4]
call fcn.00455100
call fcn.0045f340
cmp dword [eax + 8], 0
je 0x45d636
call fcn.0045f340
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 4]
push edx
call edi
test eax, eax
je 0x45d636
lea eax, [ebp + 0xc]
push 0
push eax
mov dword [ebp + 0xc], 3
call fcn.0045f340
mov ecx, dword [eax + 8]
call fcn.00457ae0
call fcn.0045f340
cmp dword [eax + 0x10f8], 0
je 0x45d661
call fcn.0045f340
mov eax, dword [eax + 0x10f8]
lea edi, [eax + eax*4 + 0x32]
add edi, edi
mov dword [esi + 0x34], 0
jmp 0x45d74a
call fcn.0045f340
cmp dword [eax + 0x104c], 2
jne 0x45d679
mov edi, 0xc9
jmp 0x45d743
call fcn.0045f340
cmp dword [eax + 0x10c0], 0
je 0x45d698
mov edi, 0x12c
mov dword [esi + 0x34], 0
jmp 0x45d74a
call fcn.0045f340
mov eax, dword [eax + 0x10c4]
push ecx
sub eax, 0x10
mov edi, esp
push eax
call fcn.00403b50
add eax, 0x10
mov dword [edi], eax
call fcn.0045f340
mov eax, dword [eax + 0x10cc]
sub eax, 0x10
mov edi, esp
push eax
call fcn.00403b50
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.0045a3b0
test eax, eax
je 0x45d6eb
mov edi, 0x190
mov dword [esi + 0x34], 0
jmp 0x45d74a
call fcn.0045f340
mov eax, dword [eax + 0x10c8]
push ecx
sub eax, 0x10
mov edi, esp
push eax
call fcn.00403b50
add eax, 0x10
mov dword [edi], eax
call fcn.0045f340
mov eax, dword [eax + 0x10d0]
sub eax, 0x10
mov edi, esp
push eax
call fcn.00403b50
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.0045a3b0
test eax, eax
je 0x45d73e
mov edi, 0x1f4
mov dword [esi + 0x34], 0
jmp 0x45d74a
mov edi, 0x3e7
mov dword [esi + 0x34], 1
push edi
call fcn.0045f340
lea ecx, [eax + 0x11a0]
call fcn.00432d00
mov ecx, dword [esi + 0x34]
push edi
push ecx
push str.SetSimplyCheckMode__d__withcase__d_
call fcn.0045f340
push eax
call fcn.0042d870
mov edx, dword [esi + 0x34]
add esp, 0x10
push edx
mov ecx, esi
call fcn.0045ce90
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d7a5
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
jmp 0x45d7a5
call fcn.0045f340
mov ecx, eax
call fcn.00430080
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d7c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d8bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45d8bb
call fcn.0045f340
mov edi, dword [sym.imp.USER32.dll_IsWindow]
cmp dword [eax + 4], ebx
je 0x45d851
call fcn.0045f340
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
push edx
call edi
test eax, eax
je 0x45d851
mov eax, dword [0x570980]
push 0xa3
push eax
lea ecx, [ebp + 0x10]
call fcn.00423560
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
mov dword [ebp + 0xc], ebx
call fcn.0045f340
mov ecx, dword [eax + 4]
call fcn.00455380
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], 2
call fcn.0045f340
mov ecx, dword [eax + 4]
call fcn.00455100
call fcn.0045f340
cmp dword [eax + 8], ebx
je 0x45d8b1
call fcn.0045f340
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 4]
push edx
call edi
test eax, eax
je 0x45d8b1
mov eax, dword [0x570980]
push 0x9c
push eax
lea ecx, [ebp + 0x10]
call fcn.00423560
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
mov dword [ebp + 0xc], ebx
call fcn.0045f340
mov ecx, dword [eax + 8]
call fcn.00457eb0
lea eax, [ebp + 0xc]
push ebx
push eax
mov dword [ebp + 0xc], 2
call fcn.0045f340
mov ecx, dword [eax + 8]
call fcn.00457ae0
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45d8da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10