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

Disassembly:
sub esp, 0x3a8
mov eax, dword [0x4350b8]
push ebx
push ebp
mov ebp, dword [esp + 0x3b4]
mov dword [esp + 8], eax
push esi
mov eax, dword [ebp + 0x410]
push edi
mov dword [esp + 0x28], ecx
mov ebx, dword [eax]
cmp ebx, eax
je 0x40d2cf
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 ecx, [ecx + edx + 0x23d]
push ecx
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40d2bf
push 0x43a5d2
push esi
call fcn.00427e70
add esp, 8
test eax, eax
je 0x40d2bf
test esi, esi
jne 0x40d286
xor eax, eax
jmp 0x40d28d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00404650
mov edx, 0x4356d4
test edx, edx
jne 0x40d2a5
xor eax, eax
jmp 0x40d2b0
push 0x4356d4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4356d4
push eax
lea ecx, [esp + 0x18]
call fcn.00404650
mov ebx, dword [ebx]
mov eax, dword [ebp + 0x410]
cmp ebx, eax
jne 0x40d23e
mov eax, dword [esp + 0x10]
lea esi, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 1
jle 0x40d311
lea ecx, [esp + 0x10]
call fcn.00401e30
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401dd0
test eax, eax
je 0x40d311
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 0x40d4d5
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ecx
call esi
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x40d4d5
mov edx, 0x43965c
test edx, edx
jne 0x40d34d
mov dword [esp + 0x14], edi
jmp 0x40d358
push 0x43965c
call esi
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x10]
mov ebp, dword [esi - 8]
add ebp, esi
cmp esi, ebp
jae 0x40d4d5
push str.RAVXP.EXE
push esi
call fcn.00427aec
add esp, 8
test eax, eax
je 0x40d391
lea esi, [eax + ebx]
push str.RAVXP.EXE
push esi
inc edi
call fcn.00427aec
add esp, 8
test eax, eax
jne 0x40d37b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp esi, ebp
jb 0x40d369
test edi, edi
jle 0x40d4d5
lea ecx, [esp + 0x10]
call fcn.004094c0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x18], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x24], ebp
cmp eax, ebp
jl 0x40d3d8
cmp dword [esi - 0xc], 1
jle 0x40d42b
lea edi, [esi - 0xc]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], edi
call fcn.00401dd0
test eax, eax
je 0x40d4d5
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x10]
mov eax, ecx
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 + 0x1c]
mov eax, dword [0x4350bc]
cmp esi, eax
je 0x40d427
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40d427
push esi
call fcn.00426ac0
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 0x40d4d2
push str.RAVXP.EXE
push esi
call fcn.00427aec
mov edi, eax
add esp, 8
test edi, edi
je 0x40d4b7
mov ebp, dword [esp + 0x18]
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 + 0x28], eax
call fcn.00427720
mov ecx, esi
mov esi, 0x43965c
mov edx, ecx
push str.RAVXP.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 + 0x2c]
push esi
mov byte [esi + ebp], 0
mov ebp, dword [esp + 0x2c]
add ebp, eax
mov dword [esp + 0x2c], ebp
call fcn.00427aec
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40d450
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 0x40d43c
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebp
mov ecx, str.RAVSTUB.EXE
test ecx, ecx
je 0x40d677
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ecx
call esi
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x40d677
mov edx, 0x43965c
test edx, edx
jne 0x40d506
mov dword [esp + 0x14], edi
jmp 0x40d511
push 0x43965c
call esi
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x10]
mov ebp, dword [esi - 8]
add ebp, esi
cmp esi, ebp
jae 0x40d677
push str.RAVSTUB.EXE
push esi
call fcn.00427aec
add esp, 8
test eax, eax
je 0x40d54a
lea esi, [eax + ebx]
push str.RAVSTUB.EXE
push esi
inc edi
call fcn.00427aec
add esp, 8
test eax, eax
jne 0x40d534
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp esi, ebp
jb 0x40d522
test edi, edi
jle 0x40d677
lea ecx, [esp + 0x10]
call fcn.004094c0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x18], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x24], ebp
cmp eax, ebp
jl 0x40d591
cmp dword [esi - 0xc], 1
jle 0x40d5cd
lea edi, [esi - 0xc]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edi
call fcn.00401dd0
test eax, eax
je 0x40d677
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00409490
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
add eax, esi
cmp esi, eax
mov dword [esp + 0x1c], eax
jae 0x40d674
push str.RAVSTUB.EXE
push esi
call fcn.00427aec
mov edi, eax
add esp, 8
test edi, edi
je 0x40d659
mov ebp, dword [esp + 0x18]
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 + 0x2c], eax
call fcn.00427720
mov ecx, esi
mov esi, 0x43965c
mov eax, ecx
push str.RAVSTUB.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 + 0x30]
mov ecx, eax
sub ecx, ebx
push esi
mov byte [esi + ebp], 0
mov ebp, dword [esp + 0x2c]
add ebp, ecx
mov dword [esp + 0x2c], ebp
call fcn.00427aec
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40d5f2
mov ebp, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x1c]
cmp esi, eax
jb 0x40d5de
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebp
push 0x43965c
push str.RAVMOND.EXE
lea ecx, [esp + 0x18]
call fcn.004095a0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40d6c5
mov ecx, dword [0x4350bc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40d9a7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40d9a7
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
jmp 0x40d99f
mov ecx, dword [esp + 0x28]
xor eax, eax
lea edi, [esp + 0x1b1]
mov byte [esp + 0x1b0], 0
mov ebx, dword [ecx + 0x240]
mov ecx, 0x81
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x28]
stosw word es:[edi], ax
add edx, 0x50
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x1b4]
push 0x208
push eax
push 0x43965c
push str.Closed
push str.Update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x1b0]
lea esi, [esp + 0x1b0]
test ecx, ecx
je 0x40d978
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40d978
push 0x3b
push esi
call fcn.00427a55
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40d763
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
stosw word es:[edi], ax
mov edx, ebp
sub edx, esi
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x40]
push esi
push eax
call fcn.00427d70
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
lea ecx, [esp + 0x48]
push 0x2b
push ecx
stosb byte es:[edi], al
call fcn.00427a55
add esp, 0x14
test eax, eax
je 0x40d7e0
lea edx, [esp + 0x3c]
push 0x2b
push edx
call fcn.00427a55
lea ecx, [esp + 0x44]
lea edx, [esp + 0x44]
sub eax, ecx
push eax
lea eax, [esp + 0x80]
push edx
push eax
call fcn.00427d70
add esp, 0x14
jmp 0x40d7f4
lea ecx, [esp + 0x3c]
push 0x38
lea edx, [esp + 0x78]
push ecx
push edx
call fcn.00427d70
add esp, 0xc
lea eax, [esp + 0x74]
push 0
push eax
lea ecx, [esp + 0x18]
call fcn.00409560
test eax, eax
je 0x40d81d
jle 0x40d96d
mov ecx, dword [esp + 0x10]
cmp byte [eax + ecx - 1], 0x3b
jne 0x40d96d
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.00427cb0
add esp, 8
test eax, eax
je 0x40d889
lea edx, [esp + 0x3c]
push 0x2b
push edx
call fcn.00427cb0
add esp, 8
lea edx, [esp + 0x2c]
mov edi, eax
jmp 0x40d892
lea edx, [esp + 0x2c]
mov edi, 0x435894
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 0x439eb6
push str._s_s
push ecx
call fcn.00426b7c
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
push edx
push eax
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
call fcn.004019d0
test eax, eax
jne 0x40d93f
lea ecx, [esp + 0xac]
push ecx
push str.RUN_PROCESS__s
push 0x4396a0
call fcn.00404420
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40d96d
lea edx, [esp + 0xac]
push eax
push edx
push str.ExecPrograme__s__Call_return__d
push 0x4396a0
call fcn.00404420
mov ecx, dword [esp + 0x38]
add esp, 0x10
lea eax, [esp + 0xac]
push 0
push eax
call fcn.0040ddf0
lea esi, [ebp + 1]
test esi, esi
jne 0x40d72a
mov eax, dword [esp + 0x10]
mov edx, dword [0x4350bc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40d9a7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40d9a7
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00426ac0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3a8
ret 8