Function at 0x408370
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x415ec8]
sub esp, 0x534
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
mov ebx, 1
jne 0x4083ab
push esi
call dword [sym.imp.USER32.dll_MessageBeep]
push esi
push esi
push 0x413304
call fcn.0040c3c0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x534
ret
mov eax, dword [esp + 0x548]
mov dword [0x415ea0], ebx
cmp eax, esi
je 0x408430
mov ecx, dword [esp + 0x54c]
lea edx, [esp + 0x244]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
push esi
push 0x1005
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], 5
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0x100
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x415eb0]
mov eax, dword [esp + 0x3c]
cmp ecx, esi
mov dword [esp + 0x10], eax
je 0x408417
push eax
push 0x416860
push 0x41331c
jmp 0x408458
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x344]
push eax
push 0x416860
push 0x413324
push ecx
jmp 0x408460
mov eax, dword [esp + 0x54c]
mov ecx, dword [0x415ebc]
lea edx, [eax + eax*8]
lea eax, [eax + edx*2]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
push eax
push 0x416860
mov dword [esp + 0x18], eax
push 0x41332c
lea edx, [esp + 0x350]
push edx
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
call ebp
mov edi, dword [esp + 0x20]
add esp, 0x10
cmp dword [edi + 0xc4], esi
jne 0x4084a6
cmp dword [edi + 0xc0], esi
jne 0x4084a6
push esi
call dword [sym.imp.USER32.dll_MessageBeep]
push esi
push esi
push str.File_size_is_0_byte_
call fcn.0040c3c0
add esp, 0xc
mov dword [0x415ea0], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x534
ret
push esi
push esi
push 0x41334c
call fcn.0040c3c0
mov eax, dword [0x41660c]
add esp, 0xc
test eax, eax
jge 0x4084c5
xor eax, eax
mov dword [0x41660c], eax
cmp dword [0x412fc0], ebx
jne 0x4086c4
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*4]
mov ecx, dword [0x415ec0]
test byte [ecx + edx*4 + 0x50], 1
je 0x408501
mov edx, dword [0x416aac]
push 0
push 0
push 0x528
push edx
call fcn.00405650
mov eax, dword [0x41660c]
add esp, 0x10
mov ecx, dword [0x415eb0]
test ecx, ecx
je 0x408672
test byte [0x415e88], 4
je 0x408672
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x44]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x43], 0x5f
jne 0x408564
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x43], al
lea ecx, [esp + 0x44]
lea edx, [esp + 0x244]
push ecx
push 0x413368
push edx
call ebp
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x244]
lea ecx, [esp + 0x244]
push 0x41336c
push pe_nt_image_headers32
push eax
push 0x415fe4
push ecx
push 0x416980
call esi
mov al, byte [esp + 0x244]
test al, al
jne 0x4085ef
lea edx, [esp + 0x44]
lea eax, [esp + 0x244]
push edx
push 0x413378
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x244]
lea edx, [esp + 0x244]
push 0x41337c
push pe_nt_image_headers32
push ecx
push 0x415fe8
push edx
push 0x416980
call esi
lea eax, [esp + 0x244]
push eax
mov eax, dword [0x41660c]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*4]
mov eax, dword [0x415ec0]
mov ecx, dword [eax + edx*4 + 0x10]
push ecx
call fcn.004105e0
add esp, 8
test eax, eax
je 0x40866d
mov eax, dword [0x415e80]
lea edx, [esp + 0x144]
push 0x100
push edx
push 0x52b
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x244]
lea edx, [esp + 0x144]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call ebp
mov edx, dword [0x416aac]
add esp, 0xc
lea ecx, [esp + 0x44]
push 0x31
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x40866d
xor ebx, ebx
mov eax, dword [0x41660c]
test ebx, ebx
je 0x40893f
lea ecx, [eax + eax*4]
lea ebx, [esp + 0x44]
lea edx, [eax + ecx*4]
mov eax, dword [0x415ec0]
or ecx, 0xffffffff
mov edi, dword [eax + edx*4 + 4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x344]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x48]
push ecx
call fcn.00408180
add esp, 8
jmp 0x40893f
mov eax, dword [0x415ec8]
xor esi, esi
test eax, eax
mov dword [esp + 0x14], esi
jle 0x40893f
lea edx, [esp + 0x244]
lea ecx, [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x30], edx
mov edx, dword [0x416720]
push ecx
push eax
push 0x1005
push edx
mov ebx, 1
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], 6
mov dword [esp + 0x3c], 0xf000
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_SendMessageA]
test byte [esp + 0x38], bl
je 0x40892d
mov eax, dword [0x415f98]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [0x415f98], eax
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*4]
mov eax, dword [0x415ec0]
test byte [eax + edx*4 + 0x50], bl
je 0x408762
mov ecx, dword [0x416aac]
push 0
push 0
push 0x528
push ecx
call fcn.004052a0
add esp, 0x10
mov eax, dword [0x415eb0]
test eax, eax
je 0x4088cd
test byte [0x415e88], 4
je 0x4088cd
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x44]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x43], 0x5f
jne 0x4087c4
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x43], al
lea ecx, [esp + 0x44]
lea edx, [esp + 0x144]
push ecx
push 0x413388
push edx
call ebp
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x144]
lea ecx, [esp + 0x144]
push 0x41338c
push pe_nt_image_headers32
push eax
push 0x415fec
push ecx
push 0x416980
call esi
mov al, byte [esp + 0x144]
test al, al
jne 0x40884f
lea edx, [esp + 0x44]
lea eax, [esp + 0x144]
push edx
push 0x413398
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x144]
lea edx, [esp + 0x144]
push 0x41339c
push pe_nt_image_headers32
push ecx
push 0x415ff0
push edx
push 0x416980
call esi
lea eax, [esp + 0x144]
push eax
mov eax, dword [0x415f98]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*4]
mov eax, dword [0x415ec0]
mov ecx, dword [eax + edx*4 + 0x10]
push ecx
call fcn.004105e0
add esp, 8
test eax, eax
je 0x4088cd
mov eax, dword [0x415e80]
lea edx, [esp + 0x444]
push 0x100
push edx
push 0x52b
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x144]
lea edx, [esp + 0x444]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call ebp
mov edx, dword [0x416aac]
add esp, 0xc
lea ecx, [esp + 0x44]
push 0x31
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x4088cd
xor ebx, ebx
test ebx, ebx
je 0x40891b
mov eax, dword [0x415f98]
lea ebx, [esp + 0x44]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*4]
mov eax, dword [0x415ec0]
or ecx, 0xffffffff
mov edi, dword [eax + edx*4 + 4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x344]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x48]
push ecx
call fcn.00408180
add esp, 8
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [0x415f98], edx
mov eax, dword [0x415ec8]
inc esi
cmp esi, eax
mov dword [esp + 0x14], esi
jl 0x4086d7
push 0
push 0
push 0x4133a8
mov dword [0x415ea0], 0
call fcn.0040c3c0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x534
ret