Function at 0x403520
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
movzx eax, byte [ebp + 8]
test eax, eax
je 0x40365d
lea eax, [ebp + 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x403650
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0xb0], eax
mov eax, 0x7245c2f1
cmp eax, 0xfffffffd
jae 0x4035ba
mov dword [ebp - 0x3c], 1
jmp 0x4035be
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp dword [ebp - 0x3c], eax
je 0x4035d1
mov dword [ebp - 0x30], 1
jmp 0x4035d5
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
imul eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
add ecx, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, ecx
je 0x403601
mov dword [ebp - 0x40], 1
jmp 0x403605
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x40], eax
je 0x403618
mov dword [ebp - 0x38], 1
jmp 0x40361c
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x38], eax
jge 0x40362f
mov dword [ebp - 0x2c], 1
jmp 0x403633
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 5
jae 0x403642
mov dword [ebp - 0x34], 1
jmp 0x403646
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
jmp 0x403658
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
jmp 0x40388f
mov dword [ebp - 4], 0xfffffffa
mov dword [ebp - 0xc], 0x7863718b
or dword [ebp - 0x80], 0xffffffff
or dword [ebp - 0x7c], 0xffffffff
or dword [ebp - 0x78], 0xffffffff
or dword [ebp - 0x74], 0xffffffff
lea ecx, [ebp - 0x1d]
call fcn.00413b32
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00413b35
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0xbc]
call fcn.00413af8
push 2
lea ecx, [ebp - 0x8c]
call fcn.00413a85
mov dword [ebp - 0x10], 0
jmp 0x4036c4
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x4036e0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x8c]
call fcn.00413b23
mov dword [eax], 0xc0223dec
jmp 0x4036bd
cmp dword [ebp - 4], 0
je 0x403731
mov byte [ebp - 8], 0
movzx eax, byte [ebp - 8]
test eax, eax
je 0x40370b
push 0x2021
push 0xbfa
push 0
push 0x70b
push 0
call dword [sym.imp.USER32.dll_GetMenuStringW]
mov byte [ebp - 7], 0
movzx eax, byte [ebp - 7]
test eax, eax
je 0x40372c
push 0
push 0x2299
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x4037f9
push 1
lea ecx, [ebp - 0x98]
call fcn.00413a85
mov dword [ebp - 0xa8], 0x3b6f9b69
mov dword [ebp - 0xa4], 0x3b6f9b69
mov dword [ebp - 0xa0], 0x3b6f9b69
mov dword [ebp - 0x9c], 0x3b6f9b69
mov dword [ebp - 0x14], 0
jmp 0x403776
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x403792
push dword [ebp - 0x14]
lea ecx, [ebp - 0x98]
call fcn.00413b23
mov dword [eax], 3
jmp 0x40376f
push 0
lea ecx, [ebp - 0x98]
call fcn.00413b23
mov eax, dword [eax]
neg eax
add eax, dword [ebp - 4]
push 4
pop eax
test eax, eax
jne 0x4037e1
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0xa8], 1
xor eax, eax
inc eax
cmp eax, 0xfffffffb
jne 0x4037cf
mov dword [ebp - 0x28], 1
jmp 0x4037d3
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x28], eax
jle 0x4037e1
and dword [ebp - 0x44], 0
jmp 0x4037e8
mov dword [ebp - 0x44], 1
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x98]
call fcn.00413b1e
mov dword [ebp - 0xc], 0
jmp 0x403809
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
jg 0x403871
mov dword [ebp - 4], 0
jmp 0x40381f
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 3
jg 0x40385b
mov byte [ebp - 5], 0
movzx eax, byte [ebp - 5]
test eax, eax
je 0x403846
push 0x61a
push 0x266
push 0xf46
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push 1
lea ecx, [ebp - 0x8c]
call fcn.00413b23
mov dword [eax], 1
jmp 0x403818
mov byte [ebp - 6], 0
movzx eax, byte [ebp - 6]
test eax, eax
je 0x40386f
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
jmp 0x403802
lea ecx, [ebp - 0x8c]
call fcn.00413b1e
lea ecx, [ebp - 0xbc]
call fcn.00413b1e
push 0
call fcn.00402e24
pop ecx
mov esp, ebp
pop ebp
ret