Function at 0x40d9f0
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3a8
mov eax, dword [0x437348]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x3ac]
mov dword [esp], eax
push ebx
push ebp
mov eax, dword [ecx + 0x410]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
mov ebx, dword [eax]
cmp ebx, eax
je 0x40daae
mov edx, dword [ebx + 8]
or ecx, 0xffffffff
xor eax, eax
push str..exe
lea esi, [edx + 0x241]
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ecx + edx + 0x23d]
push edx
call fcn.0042a9c0
add esp, 8
test eax, eax
jne 0x40da99
push 0x43ca32
push esi
call fcn.0042a9c0
add esp, 8
test eax, eax
je 0x40da99
test esi, esi
jne 0x40da6c
xor eax, eax
jmp 0x40da6f
push esi
call ebp
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00404520
mov eax, 0x437a2c
test eax, eax
je 0x40da8a
push 0x437a2c
call ebp
push 0x437a2c
push eax
lea ecx, [esp + 0x18]
call fcn.00404520
mov ecx, dword [esp + 0x3bc]
mov ebx, dword [ebx]
cmp ebx, dword [ecx + 0x410]
jne 0x40da24
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp eax, 1
jle 0x40daf0
lea ecx, [esp + 0x10]
call fcn.00402400
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.004023a0
test eax, eax
je 0x40daf0
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x10]
inc ecx
add esi, 0xc
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
mov ecx, str.RAVXP.EXE
test ecx, ecx
je 0x40dcb9
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
je 0x40dcb9
mov edx, 0x43babc
test edx, edx
jne 0x40db28
mov dword [esp + 0x14], edx
jmp 0x40db37
push 0x43babc
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x10]
xor edi, edi
mov ebp, dword [esi - 8]
add ebp, esi
cmp esi, ebp
jae 0x40dcbd
push str.RAVXP.EXE
push esi
call fcn.0042a63f
add esp, 8
test eax, eax
je 0x40db72
lea esi, [eax + ebx]
push str.RAVXP.EXE
push esi
inc edi
call fcn.0042a63f
add esp, 8
test eax, eax
jne 0x40db5c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp esi, ebp
jb 0x40db4a
test edi, edi
jle 0x40dcb9
lea ecx, [esp + 0x10]
call fcn.00409b40
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x1c], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x24], ebp
cmp eax, ebp
jl 0x40dbb9
cmp dword [esi - 0xc], 1
jle 0x40dc0f
lea eax, [esi - 0xc]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
call fcn.004023a0
test eax, eax
je 0x40dcb9
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp eax, dword [0x43734c]
je 0x40dc0b
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40dc0b
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004292c0
add esp, 4
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
add eax, esi
cmp esi, eax
mov dword [esp + 0x20], eax
jae 0x40dcb6
push str.RAVXP.EXE
push esi
call fcn.0042a63f
mov edi, eax
add esp, 8
test edi, edi
je 0x40dc9b
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
sub ebp, edi
lea edx, [edi + ebx]
sub ebp, ebx
add ebp, esi
mov esi, dword [esp + 0x14]
push ebp
push edx
lea eax, [edi + esi]
push eax
mov dword [esp + 0x24], eax
call fcn.0042a050
mov ecx, esi
mov esi, 0x43babc
mov eax, ecx
push str.RAVXP.EXE
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x28]
mov ecx, eax
sub ecx, ebx
push esi
mov byte [esi + ebp], 0
mov ebp, dword [esp + 0x30]
add ebp, ecx
mov dword [esp + 0x30], ebp
call fcn.0042a63f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40dc34
mov ebp, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x20]
cmp esi, eax
jb 0x40dc20
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebp
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
mov al, byte [ebx + 0x251]
test al, al
je 0x40de8c
mov edx, str.RAVSTUB.EXE
test edx, edx
je 0x40de71
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call esi
mov ebx, eax
test ebx, ebx
je 0x40de71
mov eax, 0x43babc
test eax, eax
jne 0x40dcfe
mov dword [esp + 0x14], eax
jmp 0x40dd09
push 0x43babc
call esi
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x10]
xor edi, edi
mov ebp, dword [esi - 8]
add ebp, esi
cmp esi, ebp
jae 0x40de71
push str.RAVSTUB.EXE
push esi
call fcn.0042a63f
add esp, 8
test eax, eax
je 0x40dd44
lea esi, [eax + ebx]
push str.RAVSTUB.EXE
push esi
inc edi
call fcn.0042a63f
add esp, 8
test eax, eax
jne 0x40dd2e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp esi, ebp
jb 0x40dd1c
test edi, edi
jle 0x40de71
lea ecx, [esp + 0x10]
call fcn.00409b40
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x1c], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x24], ebp
cmp eax, ebp
jl 0x40dd8b
cmp dword [esi - 0xc], 1
jle 0x40ddc7
lea ecx, [esi - 0xc]
push ebp
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x14]
call fcn.004023a0
test eax, eax
je 0x40de71
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
push eax
mov ecx, dword [eax + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00409b10
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
add eax, esi
cmp esi, eax
mov dword [esp + 0x18], eax
jae 0x40de6e
push str.RAVSTUB.EXE
push esi
call fcn.0042a63f
mov edi, eax
add esp, 8
test edi, edi
je 0x40de53
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
sub ebp, edi
sub ebp, ebx
lea ecx, [edi + ebx]
add ebp, edx
lea eax, [edi + esi]
push ebp
push ecx
push eax
mov dword [esp + 0x2c], eax
call fcn.0042a050
mov ecx, esi
mov esi, 0x43babc
mov edx, ecx
push str.RAVSTUB.EXE
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
sub eax, ebx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x30]
push esi
mov byte [esi + ebp], 0
mov ebp, dword [esp + 0x30]
add ebp, eax
mov dword [esp + 0x30], ebp
call fcn.0042a63f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40ddec
mov ebp, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x18]
cmp esi, eax
jb 0x40ddd8
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebp
push 0x43babc
push str.RAVMOND.EXE
lea ecx, [esp + 0x18]
call fcn.00409c20
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
mov eax, dword [esi - 8]
test eax, eax
jne 0x40deba
mov eax, dword [0x43734c]
lea ecx, [esi - 0xc]
cmp ecx, eax
je 0x40e1ac
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40e1ac
jmp 0x40e19c
mov eax, dword [ebx + 0x240]
mov ecx, 0x81
mov dword [esp + 0x20], eax
xor eax, eax
lea edi, [esp + 0x1b1]
mov byte [esp + 0x1b0], 0
rep stosd dword es:[edi], eax
lea ecx, [ebx + 0x50]
lea edx, [esp + 0x1b0]
push ecx
push 0x208
stosw word es:[edi], ax
push edx
push 0x43babc
push str.Closed
push str.Update
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x1b0]
lea esi, [esp + 0x1b0]
test eax, eax
je 0x40e17d
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40e17d
push 0x3b
push esi
call fcn.0042a488
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40df54
lea edi, [esp + 0x1b0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [esp + ecx + 0x1b0]
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], 0
rep stosd dword es:[edi], eax
mov ecx, ebp
lea edx, [esp + 0x3c]
sub ecx, esi
stosw word es:[edi], ax
push ecx
push esi
push edx
stosb byte es:[edi], al
call fcn.0042a8c0
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x81]
mov byte [esp + 0x80], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x48]
push 0x2b
push eax
call fcn.0042a488
add esp, 0x14
test eax, eax
je 0x40dfce
lea ecx, [esp + 0x3c]
push 0x2b
push ecx
call fcn.0042a488
lea edx, [esp + 0x44]
lea ecx, [esp + 0x7c]
sub eax, edx
push eax
lea eax, [esp + 0x48]
push eax
push ecx
call fcn.0042a8c0
add esp, 0x14
jmp 0x40dfe2
lea edx, [esp + 0x3c]
push 0x38
lea eax, [esp + 0x78]
push edx
push eax
call fcn.0042a8c0
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jl 0x40e172
lea ecx, [esp + 0x74]
push ecx
push eax
call fcn.0042a63f
add esp, 8
test eax, eax
je 0x40e172
mov ecx, dword [esp + 0x10]
sub eax, ecx
je 0x40e022
test eax, eax
jle 0x40e172
cmp byte [eax + ecx - 1], 0x3b
jne 0x40e172
mov edi, str.RAVXP.EXE
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
mov dword [esp + 0x2d], edx
mov byte [esp + 0x2c], 0
mov dword [esp + 0x31], edx
push 0x2b
mov dword [esp + 0x39], edx
not ecx
mov word [esp + 0x3d], dx
sub edi, ecx
mov byte [esp + 0x3f], dl
lea edx, [esp + 0x30]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
push ecx
call fcn.0042a800
add esp, 8
test eax, eax
je 0x40e08e
lea edx, [esp + 0x3c]
push 0x2b
push edx
call fcn.0042a800
add esp, 8
lea edx, [esp + 0x2c]
mov edi, eax
jmp 0x40e097
lea edx, [esp + 0x2c]
mov edi, 0x437be0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0xad]
mov byte [esp + 0xac], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x74]
lea ecx, [esp + 0xac]
push eax
push 0x43c316
push str._s_s
push ecx
call fcn.00429590
lea edi, [esp + 0xbc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0xac]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00401fa0
test eax, eax
jne 0x40e146
lea ecx, [esp + 0xac]
push ecx
push str.RUN_PROCESS__s
push 0x43bb00
call fcn.004042f0
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e172
lea edx, [esp + 0xac]
push eax
push edx
push str.ExecPrograme__s__Call_return__d
push 0x43bb00
call fcn.004042f0
add esp, 0x10
lea eax, [esp + 0xac]
mov ecx, ebx
push 0
push eax
call fcn.0040e680
lea esi, [ebp + 1]
test esi, esi
jne 0x40df1b
mov eax, dword [esp + 0x10]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40e1ac
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40e1ac
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3a8
ret 8