Function at 0x402000
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b210
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x184]
push 0x12c
push eax
push 0x437214
push str.RunMode
push str.Project
call edi
lea ecx, [ebp + 8]
lea edx, [ebp - 0x184]
push ecx
push 0x437200
push edx
call fcn.004128c5
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402088
lea eax, [ebp - 0x2c]
push 0x432860
push eax
mov dword [ebp - 0x2c], 3
call fcn.004129cf
mov ebx, dword [ebp + 0xc]
push esi
lea ecx, [ebp - 0x184]
push 0x12c
push ecx
push 0x437214
push str.InitMode
push str.Project
mov dword [ebx + 4], eax
call edi
lea edx, [ebp + 8]
lea eax, [ebp - 0x184]
push edx
push 0x437200
push eax
call fcn.004128c5
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4020e1
lea ecx, [ebp - 0x24]
push 0x432860
push ecx
mov dword [ebp - 0x24], 3
call fcn.004129cf
push esi
lea edx, [ebp - 0x184]
push 0x12c
push edx
push 0x437214
push str.RunAddr
push str.Project
mov dword [ebx + 8], eax
call edi
lea eax, [ebp + 8]
lea ecx, [ebp - 0x184]
push eax
push 0x4371e8
push ecx
call fcn.004128c5
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402137
lea edx, [ebp - 0x38]
push 0x432860
push edx
mov dword [ebp - 0x38], 3
call fcn.004129cf
mov dword [ebx + 0x10], eax
mov dword [0x43cd14], eax
push esi
lea eax, [ebp - 0x184]
push 0x12c
push eax
push 0x437214
push str.ReadBufCodeAddr
push str.Project
call edi
lea ecx, [ebp + 8]
lea edx, [ebp - 0x184]
push ecx
push 0x4371e8
push edx
call fcn.004128c5
add esp, 0xc
lea eax, [ebp - 0x184]
push esi
push 0x12c
push eax
push 0x437214
push str.FileNum
push str.Project
call edi
lea ecx, [ebp + 8]
lea edx, [ebp - 0x184]
push ecx
push 0x437200
push edx
call fcn.004128c5
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4021c8
lea eax, [ebp - 0x34]
push 0x432860
push eax
mov dword [ebp - 0x34], 3
call fcn.004129cf
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebp + 0xc], eax
cmp eax, dword [ebx + 0xc]
jge 0x402333
push eax
lea ecx, [ebp - 0x58]
push str.File_d
push ecx
call fcn.0041297d
add esp, 0xc
lea edx, [ebp - 0x184]
lea eax, [ebp - 0x58]
push esi
push 0x12c
push edx
push 0x437214
push str.File
push eax
call edi
mov eax, dword [ebp + 0xc]
push esi
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*8]
lea ecx, [ebp - 0x184]
push ecx
lea eax, [ebx + edx*8]
mov dword [ebp - 0x18], eax
add eax, 0x58
push eax
call fcn.00401e60
add esp, 0xc
lea edx, [ebp - 0x184]
lea eax, [ebp - 0x58]
push esi
push 0x12c
push edx
push 0x437214
push str.Type
push eax
call edi
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x184]
push ecx
push 0x4371e8
push edx
call fcn.004128c5
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40227d
lea eax, [ebp - 0x28]
push 0x432860
push eax
mov dword [ebp - 0x28], 3
call fcn.004129cf
mov ecx, dword [ebp - 0x18]
cmp eax, 1
mov dword [ecx + 0x14], eax
jne 0x402320
push esi
lea ecx, [ebp - 0x184]
push 0x12c
push ecx
push 0x437214
lea edx, [ebp - 0x58]
push str.Addr
push edx
call edi
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x184]
push eax
push 0x4371e8
push ecx
call fcn.004128c5
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4022eb
lea edx, [ebp - 0x30]
push 0x432860
push edx
mov dword [ebp - 0x30], 3
call fcn.004129cf
mov dword [ebp - 0x20], 1
mov eax, 0x40240c
ret
mov ecx, dword [ebp - 0x18]
cmp eax, 0xa0010000
mov dword [ecx + 0x20], eax
jne 0x402327
push esi
lea eax, [ecx + 0x58]
push str.temp.gz
push eax
call fcn.00401e60
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [eax + 0x20], 0xa0110000
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
jmp 0x4021d0
mov dword [ecx + 0x20], 0xffffffff
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
jmp 0x4021d0
push esi
push 0x1000
push 0x441638
push 0x44464c
push 0
push str.AutoRun
call edi
mov eax, 0x441638
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0x43f638
mov dword [ebp - 0x1c], 0x2000
mov dword [ebp + 0xc], ecx
mov dword [ebx + 0x2814], ecx
jmp 0x402378
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
je 0x40240c
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push esi
push ecx
push edx
push 0x44464c
push eax
push str.AutoRun
call edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
or edx, 0xffffffff
mov dword [ebx + eax*8 + 0x2684], ecx
mov dword [ebx + eax*8 + 0x2688], edi
inc eax
or ecx, 0xffffffff
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x2814]
inc eax
mov dword [ebx + 0x2814], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0xc]
not ecx
dec ecx
cmp eax, 0x30
lea ecx, [edx + ecx + 1]
mov dword [ebp - 0x14], ecx
jne 0x40236f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret