Function at 0x407930
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0xe5c
mov eax, dword [0x456600]
xor eax, esp
mov dword [esp + 0xe54], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x206
push eax
lea ecx, [esp + 0x32]
push ecx
mov dword [esp + 0x20], edi
mov byte [esp + 0x1f], 0
mov word [esp + 0x34], ax
call fcn.0042e640
mov esi, dword [0x45a9f4]
add esp, 0xc
lea ebx, [esp + 0x28]
call fcn.004010a0
mov edx, ebx
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407bdd
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x23a]
push ecx
mov word [esp + 0x23c], ax
call fcn.0042e640
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
mov edx, ebx
push edx
push 0x104
lea eax, [esp + 0x238]
push eax
push 0x4497fc
push str.dlgCaption
push str.dlg_config
call ebp
lea eax, [esp + 0x230]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4079e0
sub eax, edx
sar eax, 1
je 0x407a00
lea ecx, [esp + 0x230]
push ecx
mov ecx, edi
call fcn.00416ad8
lea edx, [esp + 0x28]
push edx
push 0
push 0x449848
push str.dlg_config
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
inc eax
cmp eax, edi
mov dword [esp + 0x18], eax
jle 0x407bd9
mov ebx, dword [esp + 0x14]
add ebx, 0x254
mov dword [esp + 0x14], ebx
jmp 0x407a44
mov ebx, dword [esp + 0x14]
push edi
push str.btn_dCaption
lea edx, [esp + 0xa58]
call fcn.004044b0
push edi
push str.btn_dExe
lea edx, [esp + 0x448]
call fcn.004044b0
push edi
push str.btn_dParam
lea edx, [esp + 0x658]
call fcn.004044b0
push edi
push str.btn_dVer
lea edx, [esp + 0x868]
call fcn.004044b0
push edi
push str.btn_dCloseDlg
lea edx, [esp + 0xc80]
call fcn.004044b0
push 0x828
call fcn.0040fe58
mov esi, eax
add esp, 0x2c
test esi, esi
je 0x407ac3
push 0x828
push 0
push esi
call fcn.0042e640
add esp, 0xc
jmp 0x407ac5
xor esi, esi
lea eax, [esp + 0x28]
push eax
push 0x104
push esi
push 0x4497fc
lea ecx, [esp + 0xa60]
push ecx
push str.dlg_config
mov dword [esp + 0x34], esi
call ebp
lea edx, [esp + 0x28]
push edx
push 0x104
lea eax, [esi + 0x208]
push eax
push 0x4497fc
lea ecx, [esp + 0x448]
push ecx
push str.dlg_config
call ebp
lea edx, [esp + 0x28]
push edx
push 0x104
lea eax, [esi + 0x410]
push eax
push 0x4497fc
lea ecx, [esp + 0x650]
push ecx
push str.dlg_config
call ebp
lea edx, [esp + 0x28]
push edx
push 0x104
lea eax, [esi + 0x618]
push eax
push 0x4497fc
lea ecx, [esp + 0x858]
push ecx
push str.dlg_config
call ebp
lea edx, [esp + 0x28]
push edx
push 0
lea eax, [esp + 0xc60]
push eax
push str.dlg_config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
test eax, eax
setg cl
inc ecx
mov dword [esi + 0x824], ecx
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x407b8a
xor ecx, ecx
jmp 0x407b92
mov ecx, dword [ebx + 0x14]
sub ecx, eax
sar ecx, 2
mov ebx, dword [ebx + 0x10]
mov edx, ebx
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x407bae
mov eax, dword [esp + 0x14]
mov dword [ebx], esi
add ebx, 4
mov dword [eax + 0x10], ebx
jmp 0x407bce
cmp eax, ebx
jbe 0x407bb7
call fcn.0042d455
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ebx
push ecx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00407f90
inc edi
cmp edi, dword [esp + 0x18]
jl 0x407a40
mov al, 1
jmp 0x407be1
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0xe64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c4f0
add esp, 0xe5c
ret