Function at 0x4ede20
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 0x4ee149
je 0x4ee06c
mov eax, ebx
dec eax
je 0x4ede6c
dec eax
jne 0x4ee1c6
mov eax, dword [esi + 0x68]
push 2
push eax
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4ee1c6
cmp dword [esi + 0x60], 1
jne 0x4ede83
mov ecx, dword [esi + 0x68]
push 1
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4ee1c6
mov eax, dword [esi + 0x74]
xor ebp, ebp
cmp eax, ebp
je 0x4edfe1
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.004eeb60
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4edf5e
mov ecx, esi
call fcn.004ee2f0
mov ecx, dword [esi + 0x5c]
push ecx
call fcn.004ed7d0
mov ecx, eax
call fcn.004ed820
mov edi, eax
mov eax, dword [esi + 0x68]
push eax
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 8]
mov ecx, dword [esi + 0x68]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push 0x3ef
push ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x64]
mov ecx, edi
push edx
call fcn.004eba00
mov eax, dword [esi + 0x68]
push 5
push 0x3ef
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [edi]
lea eax, [esp + 0x21c]
push 2
push eax
mov ecx, edi
call dword [edx + 0xc]
cmp edi, ebp
je 0x4edf4e
mov edx, dword [edi]
push 3
mov ecx, edi
call dword [edx]
mov ecx, esi
call fcn.004ee200
mov ebx, dword [esp + 0x10]
jmp 0x4ee1c6
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 [0x607afc]
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 [0x607afc]
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 0x4ee1c6
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]
push 1
lea eax, [esp + 0x18]
push 2
push eax
call fcn.004cf160
mov ecx, eax
call fcn.004dc510
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.004ee200
mov eax, dword [esi + 0x68]
push ebp
push 1
push eax
call edi
push eax
call ebx
mov ebx, dword [esp + 0x10]
jmp 0x4ee1c6
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 0x4ee0d9
lea ecx, [esp + 0x14]
lea edx, [esp + 0x21c]
push ecx
push edx
mov ecx, esi
call fcn.004edca0
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 0x4ee1c6
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.0046dc70
add esp, 4
push eax
mov eax, dword [esi + 0x68]
push eax
call fcn.00479650
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 0x4ee1c6
mov eax, ebx
sub eax, 0x420
je 0x4ee1b8
sub eax, 3
jne 0x4ee1c6
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.004edcd0
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 0x4ee1c6
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 0x4ee1e5
mov edx, dword [esp + 0x634]
mov ecx, esi
push edx
push ebx
call fcn.004eea00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x61c
ret 8