Function at 0x49994e
Capabilities:
Check if file exists
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebx + 0xf98], 0
mov dword [ebp - 0x20], ebx
jne 0x499980
lea ecx, [ebx - 0x20]
call fcn.004997fc
mov dword [ebx + 0xf98], eax
cmp dword [ebp + 0xc], 1
lea esi, [ebx + 0x8f0]
jne 0x499996
push edi
mov ecx, esi
call fcn.004286b9
jmp 0x4999ae
push 0x527fb4
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push 0x527fb4
mov ecx, esi
call fcn.00410dd4
and dword [ebx + 0x974], 0
push 4
push 0x56a6d0
call fcn.004dbb4d
pop ecx
pop ecx
push dword [ebx + 0x95c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebx + 0x934]
mov ecx, eax
mov esi, dword [ebx + 0x930]
sub ecx, esi
and dword [ebp - 0x1c], 0
add ecx, 3
shr ecx, 2
cmp eax, esi
sbb edi, edi
not edi
and edi, ecx
je 0x499a2e
mov ebx, dword [ebp - 0x1c]
mov eax, dword [esi]
push dword [eax + 0x37c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x499a23
mov ecx, eax
call fcn.0042a9f6
push 0x41fc
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
add esi, 4
inc ebx
cmp ebx, edi
jne 0x4999f6
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x930]
lea ecx, [ebx + 0x93c]
mov dword [ebx + 0x934], eax
call fcn.0049cd08
xor eax, eax
mov esi, str.ck_W_nN_OO_
mov dword [ebx + 0x8b8], eax
mov dword [0x575088], eax
mov dword [0x57508c], eax
mov dword [ebx + 0x8c0], eax
lea eax, [ebp - 0x28]
push eax
push esi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push esi
push dword [ebx - 0x1c]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea ecx, [ebx - 0x20]
push 1
call fcn.0049b8d3
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, 0x55e
push edi
push dword [ebx - 0x1c]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push dword [ebx - 0x1c]
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 4
push 0x11
push dword [ebp - 0x28]
push 0xd2
push 0x1e
push 0
push eax
call edi
push 0x551
push dword [ebx - 0x1c]
call esi
push 0x40
push 0x11
push dword [ebp - 0x28]
push 0xd2
push 0x1e
push 0
push eax
call edi
push 0x506
push dword [ebx - 0x1c]
call esi
mov ecx, dword [ebp - 0x28]
push 0x40
push 0x11
push 0x1f4
push 0xd2
add ecx, 0x23
push ecx
push 0
push eax
call edi
push 0x550
push dword [ebx - 0x1c]
call esi
push 0x40
push 0xe
push 0x312
push 0xe9
push 0x1e
push 0
push eax
call edi
push 0x556
push dword [ebx - 0x1c]
call esi
push 0x40
push 0x14
push 0x28
push 0xfd
push 0x1e
push 0
push eax
call edi
push 0x557
push dword [ebx - 0x1c]
call esi
push 0x40
push 0x14
push 0x3c
push 0xfd
push 0x46
push 0
push eax
call edi
push 0x558
push dword [ebx - 0x1c]
call esi
push 0x40
push 0x14
push 0x3c
push 0xfd
push 0x8c
push 0
push eax
call edi
push 0x559
push dword [ebx - 0x1c]
call esi
push 0x40
push 0x14
push 0x3c
push 0xfd
push 0xc8
xor esi, esi
push esi
push eax
call edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push dword [ebx - 0x1c]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [ebp - 0xc]
sub esi, dword [ebp - 0x14]
push 0x55a
push dword [ebx - 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x40
push 0x14
push 0x28
push 0xd2
lea ecx, [esi - 0x48]
push ecx
push 0
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x503
push dword [ebx - 0x1c]
call esi
push 1
xor ecx, ecx
push ecx
push ecx
push 0xaa
push 0x10e
push ecx
push eax
call edi
push 0x504
push dword [ebx - 0x1c]
call esi
push 0x40
push 0x18
push 0x96
push 0xaa
push 0x140
push 0
push eax
call edi
push 0x57e
push dword [ebx - 0x1c]
call esi
push 0x40
push 0x18
push 0x32
push 0xab
push 0x1e0
push 0
push eax
call edi
push 0x55f
push dword [ebx - 0x1c]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x55f
push dword [ebx - 0x1c]
call esi
push 4
push 0x18
push 0x1c2
push 0xb2
push 0x140
push 0
push eax
call edi
push 0x505
push dword [ebx - 0x1c]
call esi
push 0x40
push 0x14
push 0x1c2
push 0xc3
push 0x140
xor esi, esi
push esi
push eax
call edi
push esi
push 1
push 0x2716
push dword [ebx - 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x503
push dword [ebx - 0x1c]
mov dword [ebp - 0x18], esi
call edi
push eax
lea ecx, [ebp - 0x18]
call fcn.0041bc70
cmp dword [ebp - 0x18], esi
je 0x499d01
push 0x53e680
push dword [0x577c88]
lea eax, [ebp - 0x20]
push eax
call fcn.0041bbfe
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [eax]
push esi
mov esi, dword [ebp - 0x20]
push 1
push 0x96
push 0xc
push esi
push eax
call dword [ecx + 0x14]
lea ecx, [esi - 0x10]
call fcn.004042e9
xor esi, esi
push esi
push esi
push 0x402
push dword [ebx + 0x30]
call dword [sym.imp.USER32.dll_SendMessageW]
lea esi, [ebx + 0x10]
test esi, esi
je 0x499d1f
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 0x920]
call fcn.0049cc9f
lea ecx, [ebx + 0x928]
call fcn.0049cc9f
test esi, esi
je 0x499d40
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
cmp dword [ebx + 0xf98], esi
jne 0x499d5f
mov ecx, dword [ebx + 8]
push esi
push 3
push 0x3f
mov eax, dword [ecx]
call dword [eax + 0xc]
push 3
call fcn.0049ae9a
pop ecx
push 0x527fb4
lea ecx, [ebx + 0x8f0]
call fcn.00419990
test al, al
jne 0x499db1
lea eax, [ebx + 0x8f0]
cmp dword [eax + 0x14], 8
jb 0x499d81
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x499db1
push 3
pop eax
lea esi, [ebx - 0x20]
mov dword [ebx + 0x8c4], eax
push eax
mov ecx, esi
call fcn.0049b2bd
xor eax, eax
push eax
push eax
push esi
push 0x4959c6
push eax
push eax
jmp 0x499e53
push esi
lea ecx, [ebx - 0x20]
mov dword [ebx + 0x8c4], 2
call fcn.0049b8d3
push 0x551
push dword [ebx - 0x1c]
call edi
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x53e6e8
push eax
call esi
push 0x558
push dword [ebx - 0x1c]
call edi
push 0x53e740
push eax
call esi
push 0x506
push dword [ebx - 0x1c]
call edi
push 0x530458
push eax
call esi
push 0x55a
push dword [ebx - 0x1c]
call edi
push 0x53e788
push eax
call esi
push 0x556
push dword [ebx - 0x1c]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
push 0x557
push dword [ebx - 0x1c]
call edi
push 0
push eax
call esi
push 0x55a
push dword [ebx - 0x1c]
call edi
xor edi, edi
push edi
push eax
call esi
push edi
push edi
lea eax, [ebx - 0x20]
push eax
push 0x49cb1c
push edi
push edi
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push dword [ebx - 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00522d04
leave
ret 8