Function at 0x4d84b0
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 0x4d879d
je 0x4d86c0
mov eax, ebx
dec eax
je 0x4d84fc
dec eax
jne 0x4d881a
mov eax, dword [esi + 0x68]
push 2
push eax
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4d881a
cmp dword [esi + 0x60], 1
jne 0x4d8513
mov ecx, dword [esi + 0x68]
push 1
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4d881a
mov eax, dword [esi + 0x74]
xor ebp, ebp
cmp eax, ebp
je 0x4d8637
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.004d9170
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4d85b4
mov ecx, esi
call fcn.004d8930
mov ecx, dword [esi + 0x5c]
push ecx
call fcn.004d7c70
mov ecx, eax
call fcn.004d7cc0
mov edx, dword [esi + 0x64]
mov edi, eax
push edx
mov ecx, edi
call fcn.004d5940
mov eax, dword [esi + 0x68]
mov edx, dword [edi]
mov dword [edi + 0xc], eax
lea eax, [esp + 0x21c]
push 2
push eax
mov ecx, edi
call dword [edx + 4]
cmp edi, ebp
je 0x4d85a8
mov edx, dword [edi]
push 3
mov ecx, edi
call dword [edx]
mov ecx, esi
call fcn.004d8850
jmp 0x4d881a
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 [0x5ec57c]
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 [0x5ec57c]
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 0x4d881a
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.004c1070
mov ecx, eax
call fcn.004cdf10
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.004d8850
mov eax, dword [esi + 0x68]
push ebp
push 1
push eax
call edi
push eax
call ebx
mov ebx, dword [esp + 0x10]
jmp 0x4d881a
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 0x4d872d
lea ecx, [esp + 0x14]
lea edx, [esp + 0x21c]
push ecx
push edx
mov ecx, esi
call fcn.004d8330
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 0x4d881a
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.00465020
add esp, 4
push eax
mov eax, dword [esi + 0x68]
push eax
call fcn.004703a0
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 0x4d881a
mov eax, ebx
sub eax, 0x420
je 0x4d880c
sub eax, 3
jne 0x4d881a
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.004d8360
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 0x4d881a
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 0x4d8839
mov edx, dword [esp + 0x634]
mov ecx, esi
push edx
push ebx
call fcn.004d9010
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x61c
ret 8