Function at 0x4c71c0
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 0x4c74a8
je 0x4c73cb
mov eax, ebx
dec eax
je 0x4c720c
dec eax
jne 0x4c7525
mov eax, dword [esi + 0x68]
push 2
push eax
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4c7525
cmp dword [esi + 0x60], 1
jne 0x4c7223
mov ecx, dword [esi + 0x68]
push 1
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4c7525
mov eax, dword [esi + 0x74]
xor ebp, ebp
cmp eax, ebp
je 0x4c7342
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.004c7e80
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4c72bf
mov ecx, esi
call fcn.004c7640
mov ecx, dword [esi + 0x5c]
push ecx
call fcn.004c6a00
mov ecx, eax
call fcn.004c6a50
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 0x4c72b3
mov edx, dword [edi]
push 3
mov ecx, edi
call dword [edx]
mov ecx, esi
call fcn.004c7560
jmp 0x4c7525
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 [0x5d1134]
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 [0x5d1134]
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 0x4c7525
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.004afc20
mov ecx, eax
call fcn.004bc420
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.004c7560
mov eax, dword [esi + 0x68]
push ebp
push 1
push eax
call edi
push eax
call ebx
mov ebx, dword [esp + 0x10]
jmp 0x4c7525
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 0x4c7438
lea ecx, [esp + 0x14]
lea edx, [esp + 0x21c]
push ecx
push edx
mov ecx, esi
call fcn.004c7040
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 0x4c7525
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.0045cfe0
add esp, 4
push eax
mov eax, dword [esi + 0x68]
push eax
call fcn.00467750
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 0x4c7525
mov eax, ebx
sub eax, 0x420
je 0x4c7517
sub eax, 3
jne 0x4c7525
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.004c7070
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 0x4c7525
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 0x4c7544
mov edx, dword [esp + 0x634]
mov ecx, esi
push edx
push ebx
call fcn.004c7d20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x61c
ret 8