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

Disassembly:
sub esp, 0x61c
push ebx
mov ebx, dword [esp + 0x624]
and ebx, 0xffff
push ebp
push esi
cmp ebx, 0x412
push edi
mov esi, ecx
mov dword [esp + 0x10], ebx
jg 0x4c2698
je 0x4c25bb
mov eax, ebx
dec eax
je 0x4c23fc
dec eax
jne 0x4c2715
mov eax, dword [esi + 0x68]
push 2
push eax
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4c2715
cmp dword [esi + 0x60], 1
jne 0x4c2413
mov ecx, dword [esi + 0x68]
push 1
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4c2715
mov eax, dword [esi + 0x74]
xor ebp, ebp
cmp eax, ebp
je 0x4c2532
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bp
rep stosd dword es:[edi], eax
lea edx, [esp + 0x21c]
push 0x104
push edx
mov ecx, esi
stosw word es:[edi], ax
call fcn.004c3080
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4c24af
mov ecx, esi
call fcn.004c2830
mov ecx, dword [esi + 0x5c]
push ecx
call fcn.004c1bd0
mov ecx, eax
call fcn.004c1c20
mov edx, dword [esi + 0x64]
mov edi, eax
push 2
mov ecx, edi
mov dword [edi + 4], edx
mov eax, dword [esi + 0x68]
mov edx, dword [edi]
mov dword [edi + 8], eax
lea eax, [esp + 0x220]
push eax
call dword [edx + 4]
cmp edi, ebp
je 0x4c24a3
mov edx, dword [edi]
push 3
mov ecx, edi
call dword [edx]
mov ecx, esi
call fcn.004c2750
jmp 0x4c2715
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x426]
mov word [esp + 0x424], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bp
rep stosd dword es:[edi], eax
mov ecx, dword [0x5cbdcc]
push 0x103
stosw word es:[edi], ax
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [esp + 0x18]
push eax
push 0xea83
push ecx
call edi
mov eax, dword [0x5cbdcc]
lea edx, [esp + 0x424]
push 0x103
push edx
push 0xea75
push eax
call edi
mov eax, dword [esi + 0x68]
lea ecx, [esp + 0x424]
push ebp
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4c2715
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bp
mov edx, dword [esi + 0x68]
push 0x103
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
stosw word es:[edi], ax
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push ecx
push 0x424
push edx
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x14]
push 2
push eax
call fcn.004aa7d0
mov ecx, eax
call fcn.004b6f40
mov ecx, dword [esi + 0x68]
push ebp
push 0x424
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
mov edx, dword [esi + 0x68]
push ebp
push 0x423
push edx
call edi
push eax
call ebx
mov ecx, esi
call fcn.004c2750
mov eax, dword [esi + 0x68]
push ebp
push 1
push eax
call edi
push eax
call ebx
mov ebx, dword [esp + 0x10]
jmp 0x4c2715
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bp
mov word [esp + 0x14], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [esi + 0x5c], 2
jne 0x4c2628
lea ecx, [esp + 0x14]
lea edx, [esp + 0x21c]
push ecx
push edx
mov ecx, esi
call fcn.004c2230
mov ecx, dword [esi + 0x68]
lea eax, [esp + 0x21c]
push eax
push 0x411
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x4c2715
mov eax, dword [esi + 0x68]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
lea edx, [esp + 0x21c]
push 0x103
push edx
push 0x411
push eax
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x21c]
lea edx, [esp + 0x21c]
push ecx
push 0x103
push edx
push 0xea99
call fcn.00457390
add esp, 4
push eax
mov eax, dword [esi + 0x68]
push eax
call fcn.00461f00
mov edx, dword [esi + 0x68]
add esp, 0x14
lea ecx, [esp + 0x21c]
push ecx
push 0x411
push edx
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x4c2715
mov eax, ebx
sub eax, 0x420
je 0x4c2707
sub eax, 3
jne 0x4c2715
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bp
mov word [esp + 0x424], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x426]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x424]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.004c2260
mov eax, dword [esi + 0x68]
lea edx, [esp + 0x14]
push edx
push 0x424
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x4c2715
mov eax, dword [esi + 0x64]
xor ecx, ecx
cmp eax, 1
setne cl
mov dword [esi + 0x64], ecx
mov eax, dword [esp + 0x630]
shr eax, 0x10
cmp eax, 9
jne 0x4c2734
mov edx, dword [esp + 0x634]
mov ecx, esi
push edx
push ebx
call fcn.004c2f20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x61c
ret 8