Function at 0x4d8120
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 0x4d840d
je 0x4d8330
mov eax, ebx
dec eax
je 0x4d816c
dec eax
jne 0x4d848a
mov eax, dword [esi + 0x68]
push 2
push eax
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4d848a
cmp dword [esi + 0x60], 1
jne 0x4d8183
mov ecx, dword [esi + 0x68]
push 1
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4d848a
mov eax, dword [esi + 0x74]
xor ebp, ebp
cmp eax, ebp
je 0x4d82a7
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.004d8de0
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4d8224
mov ecx, esi
call fcn.004d85a0
mov ecx, dword [esi + 0x5c]
push ecx
call fcn.004d7940
mov ecx, eax
call fcn.004d7990
mov edx, dword [esi + 0x64]
mov edi, eax
push edx
mov ecx, edi
call fcn.004d5670
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 0x4d8218
mov edx, dword [edi]
push 3
mov ecx, edi
call dword [edx]
mov ecx, esi
call fcn.004d84c0
jmp 0x4d848a
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 [0x5ec5ac]
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 [0x5ec5ac]
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 0x4d848a
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.004c0d40
mov ecx, eax
call fcn.004cdc20
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.004d84c0
mov eax, dword [esi + 0x68]
push ebp
push 1
push eax
call edi
push eax
call ebx
mov ebx, dword [esp + 0x10]
jmp 0x4d848a
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 0x4d839d
lea ecx, [esp + 0x14]
lea edx, [esp + 0x21c]
push ecx
push edx
mov ecx, esi
call fcn.004d7fa0
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 0x4d848a
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.00464780
add esp, 4
push eax
mov eax, dword [esi + 0x68]
push eax
call fcn.0046fec0
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 0x4d848a
mov eax, ebx
sub eax, 0x420
je 0x4d847c
sub eax, 3
jne 0x4d848a
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.004d7fd0
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 0x4d848a
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 0x4d84a9
mov edx, dword [esp + 0x634]
mov ecx, esi
push edx
push ebx
call fcn.004d8c80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x61c
ret 8