Function at 0x41513e
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 0x415161
mov ecx, esi
call fcn.00415e56
jmp 0x41551e
xor ebx, ebx
cmp dword [esi + 0x34], ebx
jne 0x415170
push 2
call fcn.004074e2
pop ecx
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x4151dc
cmp eax, 1
je 0x415195
jle 0x41551e
cmp eax, 3
jg 0x41551e
push 5
call fcn.004074e2
pop ecx
jmp 0x415155
push 6
call fcn.0040764c
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 0x4151d0
call fcn.0041cd00
mov ecx, eax
call fcn.0041fad4
mov ecx, esi
call fcn.004158fd
jmp 0x41551e
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 0x41523b
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.0041cd00
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 0x4154e6
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov dword [ebp + 8], eax
jne 0x415361
lea eax, [ebp - 0x218]
push eax
call fcn.004244cb
test eax, eax
pop ecx
jne 0x415361
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.0040764c
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 0x415427
lea eax, [ebp - 0x218]
push eax
call fcn.0042454f
test al, al
pop ecx
jne 0x415436
cmp dword [ebp + 8], 0
jne 0x415389
lea eax, [ebp - 0x218]
push eax
call fcn.004245e4
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.0040764c
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 0x41551e
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 0x415473
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 0x415494
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.0041cd00
mov ecx, eax
call fcn.004224a1
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.0040764c
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 0x4151d0
mov ecx, esi
call fcn.0041689c
push 0x3e9
push dword [esi + 4]
call ebx
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
call fcn.0040764c
pop ecx
push eax
push 0x3e8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, esi
call fcn.00416053
pop edi
pop esi
pop ebx
leave
ret 4