Function at 0x415112
Capabilities:
Check if file exists
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x460], 1
jne 0x415135
mov ecx, esi
call fcn.00415db6
jmp 0x4154f2
xor ebx, ebx
cmp dword [esi + 0x34], ebx
jne 0x415144
push 2
call fcn.004074e2
pop ecx
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x4151b0
cmp eax, 1
je 0x415169
jle 0x4154f2
cmp eax, 3
jg 0x4154f2
push 5
call fcn.004074e2
pop ecx
jmp 0x415129
push 6
call fcn.0040770e
pop ecx
mov edi, 0x3e8
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp + 8], ebx
jne 0x4151a4
call fcn.0041cb9c
mov ecx, eax
call fcn.0041f948
mov ecx, esi
call fcn.004158d1
jmp 0x4154f2
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x216]
mov word [ebp - 0x218], bx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f7
push dword [esi + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call ebx
lea ecx, [ebp - 0x218]
push 0x103
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp word [ebp + eax*2 - 0x21a], 0x5c
lea eax, [ebp + eax*2 - 0x21a]
pop ecx
jne 0x41520f
and word [eax], 0
and word [ebp - 0x628], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x626]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.0041cb9c
push dword [eax + 0x4c]
mov edi, dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x628]
push 0x43caa8
push 0x103
push eax
call edi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x18
test eax, eax
je 0x4154ba
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov dword [ebp + 8], eax
jne 0x415335
lea eax, [ebp - 0x218]
push eax
call fcn.00424317
test eax, eax
pop ecx
jne 0x415335
and word [ebp - 0x420], ax
mov ecx, 0x81
lea edi, [ebp - 0x41e]
push 0xc
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.0040770e
pop ecx
push eax
push 0x43caa8
lea eax, [ebp - 0x420]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 0x3e8
push dword [esi + 4]
call ebx
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push eax
call edi
push 0x3e9
push dword [esi + 4]
call ebx
push 0
push eax
call edi
lea eax, [ebp - 0x420]
mov dword [esi + 0xdc4], 0x4545c8
push eax
push dword [esi + 0xda8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [ebp - 0x10], 0xa0
mov dword [ebp - 0xc], 0x50
mov dword [ebp - 8], 0x204
mov dword [ebp - 4], 0x6e
push 1
lea eax, [ebp - 0x10]
jmp 0x4153fb
lea eax, [ebp - 0x218]
push eax
call fcn.0042439b
test al, al
pop ecx
jne 0x41540a
cmp dword [ebp + 8], 0
jne 0x41535d
lea eax, [ebp - 0x218]
push eax
call fcn.00424430
pop ecx
and word [ebp - 0x420], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x41e]
rep stosd dword es:[edi], eax
push 0xe
stosw word es:[edi], ax
call fcn.0040770e
pop ecx
push eax
push 0x43caa8
lea eax, [ebp - 0x420]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 0x3e8
push dword [esi + 4]
call ebx
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push eax
call edi
push 0x3e9
push dword [esi + 4]
call ebx
push 0
push eax
call edi
lea eax, [ebp - 0x420]
mov dword [esi + 0xdc4], 0x4545c8
push eax
push dword [esi + 0xda8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [ebp - 0x10], 0xa0
mov dword [ebp - 0xc], 0x50
mov dword [ebp - 8], 0x204
mov dword [ebp - 4], 0x6e
push 1
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4154f2
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
pop ecx
test eax, eax
pop ecx
jne 0x415447
lea eax, [ebp - 0x628]
push eax
push 0x43caa8
lea eax, [esi + 0x3c]
push 0x103
push eax
call edi
add esp, 0x10
mov dword [esi + 0x38], 1
jmp 0x415468
lea eax, [ebp - 0x628]
mov dword [esi + 0x38], 2
push eax
push 0x43caa8
lea eax, [esi + 0x3c]
push 0x103
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call fcn.0041cb9c
mov ecx, eax
call fcn.00422315
mov edi, 0x3e8
push edi
push dword [esi + 4]
call ebx
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 3
call fcn.0040770e
pop ecx
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x3e9
push dword [esi + 4]
call ebx
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4151a4
mov ecx, esi
call fcn.00416839
push 0x3e9
push dword [esi + 4]
call ebx
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
call fcn.0040770e
pop ecx
push eax
push 0x3e8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, esi
call fcn.00415ff0
pop edi
pop esi
pop ebx
leave
ret 4