Function at 0x404250
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42b8e2
mov eax, dword fs:[0]
push eax
sub esp, 0xadc
mov eax, dword [0x437164]
xor eax, esp
mov dword [esp + 0xad8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437164]
xor eax, esp
push eax
lea eax, [esp + 0xaf0]
mov dword fs:[0], eax
mov esi, dword [esp + 0xb00]
mov ebx, ecx
mov dword [esp + 0x70], ebx
mov dword [ebx + 4], esi
call fcn.00407fc0
mov edi, eax
call fcn.00408010
xor ebp, ebp
push 0x206
mov dword [esp + 0x18], eax
lea eax, [esp + 0x2d2]
push ebp
push eax
mov word [esp + 0x2d8], bp
call fcn.00408700
push 0x206
lea ecx, [esp + 0x6ee]
push ebp
push ecx
mov word [esp + 0x6f4], bp
call fcn.00408700
push 0x206
lea edx, [esp + 0x4f2]
push ebp
push edx
mov word [esp + 0x4f8], bp
call fcn.00408700
mov ecx, dword [0x438ad0]
add esp, 0x24
call fcn.004011f0
mov ecx, eax
call fcn.00405bf0
lea edx, [esp + 0x2cc]
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, bp
jne 0x404320
lea eax, [esp + 0x2cc]
add eax, 0xfffffffe
jmp 0x404340
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x404340
mov ecx, dword [str.SoftApp.ini]
mov edx, dword [0x42d4d4]
mov dword [eax], ecx
mov ecx, dword [0x42d4d8]
mov dword [eax + 4], edx
mov edx, dword [0x42d4dc]
mov dword [eax + 8], ecx
mov ecx, dword [0x42d4e0]
mov dword [eax + 0xc], edx
mov edx, dword [0x42d4e4]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [esp + 0x2cc]
push eax
push 0x104
lea ecx, [esp + 0x4dc]
push ecx
push 0x42d3b8
push str.SoftName
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x4d4]
push edx
lea eax, [esp + 0x6e0]
push 0x42d498
push eax
call fcn.00408610
add esp, 0xc
lea ecx, [esp + 0x6dc]
push ecx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edx, [esp + 0x74]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x7c]
push 1
add eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x84]
push ebp
add eax, dword [esp + 0x1c]
push ebp
cdq
sub eax, edx
sar eax, 1
push eax
sar ecx, 1
push ecx
push ebp
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, 8
cmp dword [ebx + 0x20], edi
jb 0x404425
mov eax, dword [ebx + 0xc]
jmp 0x404428
lea eax, [ebx + 0xc]
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push eax
mov eax, dword [ebx + 4]
push 0x3ea
push eax
call esi
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ebx + 4]
push 1
push ecx
push 0x3eb
push edx
call dword [sym.imp.USER32.dll_SetDlgItemInt]
push 0x206
lea eax, [esp + 0x8ea]
push ebp
push eax
mov word [esp + 0x8f0], bp
call fcn.00408700
mov edx, dword [ebx + 0x60]
add esp, 0xc
lea ecx, [esp + 0x8e4]
push ecx
push edx
call fcn.00408130
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x8e4]
push eax
push 0x3ec
push ecx
call esi
cmp dword [ebx + 0x3c], edi
jb 0x40449b
mov eax, dword [ebx + 0x28]
jmp 0x40449e
lea eax, [ebx + 0x28]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
lea edx, [esp + 0x38]
push edx
push eax
mov dword [esp + 0xb00], ebp
mov dword [esp + 0x40], 0x3001
call fcn.00409644
add esp, 8
cmp eax, ebp
je 0x404543
jmp 0x4044d0
mov ecx, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], bp
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x4044e6
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x5c]
call fcn.00401f70
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xafc], 1
call fcn.004034b0
cmp dword [esp + 0x6c], edi
mov byte [esp + 0xaf8], 0
jb 0x404531
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0040877f
add esp, 4
lea edx, [esp + 0x38]
push edx
push ebp
call fcn.00409644
add esp, 8
cmp eax, ebp
jne 0x4044d0
push ebp
push 0x42d3b8
lea ecx, [esp + 0xa8]
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], ebp
mov word [esp + 0xac], bp
call fcn.00401f70
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp edi, eax
mov byte [esp + 0xaf8], 2
mov dword [esp + 0x14], ebp
jbe 0x404590
call fcn.004092ed
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x2c], eax
mov esi, eax
jbe 0x4045a1
call fcn.004092ed
mov eax, dword [esp + 0x30]
cmp edi, esi
je 0x40464b
cmp dword [esp + 0xb4], 0x41
ja 0x40464b
cmp dword [esp + 0x14], 0xf
jge 0x40464b
cmp edi, eax
jb 0x4045cb
call fcn.004092ed
cmp dword [edi + 0x18], 8
jb 0x4045d6
mov esi, dword [edi + 4]
jmp 0x4045d9
lea esi, [edi + 4]
mov eax, dword [esp + 0xb4]
push ebp
push 0x42d3b8
push eax
push ebp
lea ecx, [esp + 0xb0]
call fcn.00401410
test eax, eax
je 0x40460b
push 1
push 0x42d494
lea ecx, [esp + 0xa8]
call fcn.00403fe0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x404610
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0xa8]
call fcn.00403fe0
mov eax, dword [esp + 0x30]
add dword [esp + 0x14], 1
cmp edi, eax
jb 0x404643
call fcn.004092ed
mov eax, dword [esp + 0x30]
add edi, 0x1c
jmp 0x404590
push 3
push 0x42d48c
lea ecx, [esp + 0xa8]
call fcn.00403fe0
mov eax, dword [esp + 0xa4]
mov esi, 8
cmp dword [esp + 0xb8], esi
jae 0x40467a
lea eax, [esp + 0xa4]
mov ecx, dword [ebx + 4]
push eax
push 0x3ed
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push ebp
push 0x42d3b8
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], ebp
mov word [esp + 0x90], bp
call fcn.00401f70
cmp dword [ebx + 0x58], esi
jb 0x4046c0
mov eax, dword [ebx + 0x44]
jmp 0x4046c3
lea eax, [ebx + 0x44]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov edx, dword [0x42d484]
mov cx, word [0x42d488]
mov dword [esp + 0xbc], edx
lea edx, [esp + 0xbc]
push edx
push eax
mov byte [esp + 0xb00], 4
mov word [esp + 0xc8], cx
call fcn.00409644
add esp, 8
cmp eax, ebp
je 0x404786
mov edi, 8
lea ecx, [ecx]
mov ecx, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], bp
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x404726
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x5c]
call fcn.00401f70
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xafc], 5
call fcn.004034b0
cmp dword [esp + 0x6c], edi
mov byte [esp + 0xaf8], 4
jb 0x404771
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0040877f
add esp, 4
lea edx, [esp + 0xbc]
push edx
push ebp
call fcn.00409644
add esp, 8
cmp eax, ebp
jne 0x404710
push ebp
push ebp
push ebp
push str.DISPLAY
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
call dword [sym.imp.GDI32.dll_CreateICW]
push 0x42d46c
push ebp
push ebp
push ebp
push ebp
push 1
push ebp
push ebp
push ebp
push 0x190
push ebp
push ebp
push ebp
mov esi, eax
push 0xc
mov dword [esp + 0x4c], esi
call dword [sym.imp.GDI32.dll_CreateFontW]
push eax
push esi
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp esi, eax
jbe 0x4047e1
call fcn.004092ed
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], esi
cmp dword [esp + 0x1c], eax
mov edi, eax
jbe 0x4047f6
call fcn.004092ed
mov eax, dword [esp + 0x20]
cmp esi, edi
je 0x40498d
cmp esi, eax
jb 0x40480b
call fcn.004092ed
mov eax, dword [esp + 0x20]
cmp dword [esi + 0x18], 8
jb 0x404816
mov ebp, dword [esi + 4]
jmp 0x404819
lea ebp, [esi + 4]
cmp esi, eax
jb 0x404822
call fcn.004092ed
mov eax, dword [esp + 0x40]
mov edi, dword [eax + 0x14]
xor esi, esi
push 0x206
lea ecx, [esp + 0xca]
push esi
push ecx
mov dword [esp + 0x5c], edi
xor ebx, ebx
mov word [esp + 0xd0], si
call fcn.00408700
add esp, 0xc
cmp edi, 5
jle 0x404931
jmp 0x404860
lea edi, [esi + 5]
push edi
lea edx, [esp + 0xc8]
push ebp
push edx
call fcn.00409607
lea eax, [esp + 0xd0]
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404880
sub eax, edx
lea ecx, [esp + 0x44]
push ecx
sar eax, 1
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xcc]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
cmp dword [esp + 0x44], 0x1b0
jl 0x4048ff
lea eax, [esp + 0xc4]
lea ebp, [ebp + edi*2]
lea ebx, [ebx + esi + 5]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4048c4
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0x8c]
call fcn.00403fe0
push 2
push 0x42d484
lea ecx, [esp + 0x8c]
call fcn.00403fe0
xor esi, esi
jmp 0x404902
add esi, 1
push 0x206
lea edx, [esp + 0xca]
push 0
push edx
mov word [esp + 0xd0], 0
call fcn.00408700
lea eax, [esi + ebx + 5]
add esp, 0xc
cmp eax, dword [esp + 0x50]
jl 0x404860
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404936
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x8c]
call fcn.00403fe0
push 2
push 0x42d484
lea ecx, [esp + 0x8c]
call fcn.00403fe0
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x40], eax
jb 0x404979
call fcn.004092ed
mov eax, dword [esp + 0x20]
add dword [esp + 0x40], 0x1c
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x40]
xor ebp, ebp
jmp 0x4047e5
mov ecx, dword [esp + 0x4c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [esp + 0x98], 0xc8
mov eax, dword [esp + 0x88]
jb 0x4049fc
cmp dword [esp + 0x9c], 8
jae 0x4049c8
lea eax, [esp + 0x88]
push eax
mov eax, dword [ebx + 4]
push 0x3ee
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push 0x3ee
push ecx
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push ebp
push 0x3f3
jmp 0x404a3f
cmp dword [esp + 0x9c], 8
jae 0x404a0d
lea eax, [esp + 0x88]
push eax
mov eax, dword [ebx + 4]
push 0x3f3
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push 0x3f3
push ecx
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push ebp
push 0x3ee
mov edx, dword [ebx + 4]
push edx
call esi
push eax
call edi
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x404a95
mov edi, dword [esp + 0x20]
cmp esi, edi
je 0x404a8c
add esi, 0x18
jmp 0x404a60
cmp dword [esi], 8
jb 0x404a71
mov eax, dword [esi - 0x14]
push eax
call fcn.0040877f
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], ebp
mov word [esi - 0x14], bp
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x404a60
mov esi, dword [esp + 0x1c]
push esi
call fcn.0040877f
add esp, 4
mov esi, 8
cmp dword [esp + 0x9c], esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
jb 0x404abf
mov edx, dword [esp + 0x88]
push edx
call fcn.0040877f
add esp, 4
cmp dword [esp + 0xb8], esi
mov ebx, 7
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], ebp
mov word [esp + 0x88], bp
jb 0x404af3
mov eax, dword [esp + 0xa4]
push eax
call fcn.0040877f
add esp, 4
mov esi, dword [esp + 0x2c]
cmp esi, ebp
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xb4], ebp
mov word [esp + 0xa4], bp
je 0x404b51
mov edi, dword [esp + 0x30]
cmp esi, edi
je 0x404b48
add esi, 0x18
lea esp, [esp]
cmp dword [esi], 8
jb 0x404b31
mov ecx, dword [esi - 0x14]
push ecx
call fcn.0040877f
add esp, 4
mov dword [esi], ebx
mov dword [esi - 4], ebp
mov word [esi - 0x14], bp
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x404b20
mov esi, dword [esp + 0x2c]
push esi
call fcn.0040877f
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xaf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xad8]
xor ecx, esp
call fcn.004086c2
add esp, 0xae8
ret 4