Function at 0x403c20
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a236f
mov eax, dword fs:[0]
push eax
sub esp, 0x888
mov eax, dword [0x62e10c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x894], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x890], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x88c], eax
xor ecx, ecx
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push ecx
lea eax, [esi + 4]
mov word [ebp - 0x828], cx
push eax
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
call fcn.00401bc0
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 1
je 0x403cc2
lea eax, [esi + 0x1c]
lea ecx, [ebp - 0x828]
cmp ecx, eax
je 0x403cc2
push 0xffffffffffffffff
push 0
push eax
call fcn.00401bc0
call fcn.00425000
test al, al
je 0x403cdc
push edx
sahf
or dword [ecx + 0x4a], 0xfffffffb
pushfd
invalid
call fcn.00424d09
test al, al
je 0x403d04
sbb edi, dword [0x9e31a19a]
outsd dx, dword [esi]
mov esp, 0x6ea1fb1e
add dword [edi], edi
mov al, 0xdf
mov bl, 0xf4
mov bh, 0x69
lea esi, [ecx]
jl 0x403ccd
cmc
bnd jne 0x403cf5
sbb ah, byte [ecx + ebx*2 + 0x20e1de8]
add byte [eax + eax*8 + 0x5ff11674], al
call fcn.00424b26
test al, al
je 0x403d23
int1
pop edi
jno 0x403d0e
push ds
xor dl, dh
in eax, dx
ror byte [ebp - 0x41], 0x84
add byte [edx + 0x17e37413], dl
jecxz 0x403d56
adc ecx, dword [ebp - 0x17aff3bb]
rcr cl, 1
add byte [ebp - 0x72aff3bb], cl
test eax, eax
idiv edi
call dword [eax - 0x18]
mov ch, 0x40
add al, byte [eax]
lea eax, [ebp + 0xc]
push eax
call fcn.004216ec
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x840]
push eax
call fcn.00427df1
add esp, 0xc
mov byte [ebp - 4], 2
call fcn.00425114
test al, al
je 0x403d5f
jmp 0x403dae
jmp 0x403dc7
call fcn.0042508a
test al, al
je 0x403d83
pop ecx
mov ebp, 0xf36c245b
inc esp
mov dl, 0x49
push cs
xlatb
inc edx
cmp al, 0x71
or dword [esi], 0xfffffff0
dec edi
pop ebp
into
rcr dword [esi + 6], 1
jg 0x403d79
int1
or al, 0xe8
mov ebp, 0x84000212
sal byte [ecx + ebx + 0x24], 0xcf
call fcn.00425045
test al, al
je 0x403da5
and al, 0xcf
fistp qword [ecx]
imul dword [ecx + 0x333aca]
aam 0x96
jecxz 0x403ded
push 0xee299e8a
fcmove st(0), st(3)
or dword [edx], edi
and dword [edi + 0x68], ebp
add byte [eax], cl
add byte [eax], al
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00446a10
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x828]
add esp, 0xc
invalid
lea ecx, [ebp - 0x840]
cmp dword [ebp - 0x814], 8
cmovae eax, dword [ebp - 0x828]
cmp dword [ebp - 0x82c], 8
push eax
cmovae ecx, dword [ebp - 0x840]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x622454
push 0x6230f8
push ecx
call ebx
xor eax, eax
mov dword [ebp - 0x85c], 7
mov dword [ebp - 0x860], 0
mov word [ebp - 0x870], ax
cmp word [ebp - 0x810], ax
jne 0x403e2d
idiv edi
jmp [eax]
xor ecx, ecx
jmp 0x403e45
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403e36
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x870]
call fcn.00401ac0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x860], 0
je 0x40412d
mov eax, dword [ebp - 0x894]
lea ecx, [ebp - 0x870]
cmp eax, ecx
je 0x403e85
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00401bc0
cmp ebx, ebp
invalid
call fcn.00425045
test al, al
je 0x403eb0
pushal
sub dl, ah
jg 0x403e81
dec ebx
popfd
cmp byte [edx], ch
lahf
dec ecx
invalid
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x840]
cmovae eax, dword [ebp - 0x828]
cmp dword [ebp - 0x82c], 8
push eax
cmovae ecx, dword [ebp - 0x840]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x622454
push str.CacheTime
push ecx
call ebx
cmp word [ebp - 0x810], 0
jne 0x403f00
xor ecx, ecx
jmp 0x403f1f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403f10
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x890]
lea eax, [ebp - 0x810]
push eax
call fcn.00401ac0
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x840]
cmovae eax, dword [ebp - 0x828]
cmp dword [ebp - 0x82c], 8
push eax
cmovae ecx, dword [ebp - 0x840]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x622454
push str.File
push ecx
call ebx
cmp word [ebp - 0x810], 0
jne 0x403f82
xor ecx, ecx
jmp 0x403f9f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403f90
sub ecx, edx
sar ecx, 1
mov ebx, dword [ebp - 0x88c]
lea eax, [ebp - 0x810]
push ecx
push eax
mov ecx, ebx
call fcn.00401ac0
cmp dword [ebx + 0x14], 8
jb 0x403fbe
mov eax, dword [ebx]
jmp 0x403fc0
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40412d
call fcn.00425114
test al, al
je 0x403ff9
add dword [edi], 0x67
in al, dx
push ds
pop edi
insb byte es:[edi], dx
mov esi, 0x3b9e1eaf
sbb dword [ebp - 0x56], edi
out 0x82, eax
invalid
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x840]
cmovae eax, dword [ebp - 0x828]
cmp dword [ebp - 0x82c], 8
push eax
cmovae ecx, dword [ebp - 0x840]
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x622454
push str.LastMD5
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x858]
call fcn.004018d0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x848], 0
jne 0x404065
xor bl, bl
jmp 0x4040f0
cmp dword [ebx + 0x14], 8
jb 0x40406d
mov ebx, dword [ebx]
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.004018d0
lea eax, [ebp - 0x888]
push eax
call fcn.004230d3
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 5
push eax
call fcn.004216ec
lea eax, [ebp - 0x888]
push eax
call fcn.004216ec
cmp dword [ebp - 0x874], 8
lea ecx, [ebp - 0x888]
push dword [ebp - 0x878]
cmovae ecx, dword [ebp - 0x888]
lea eax, [ebp - 0x858]
cmp dword [ebp - 0x844], 8
push ecx
cmovae eax, dword [ebp - 0x858]
push dword [ebp - 0x848]
push eax
call fcn.00403070
add esp, 0x34
lea ecx, [ebp - 0x888]
mov esi, eax
call fcn.00401890
test esi, esi
sete bl
mov eax, dword [ebp - 0x844]
cmp eax, 8
jb 0x40410e
inc eax
lea ecx, [ebp - 0x858]
push eax
push dword [ebp - 0x858]
call fcn.00401fa0
xor eax, eax
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], 0
mov word [ebp - 0x858], ax
jmp 0x40412f
xor bl, bl
mov eax, dword [ebp - 0x85c]
cmp eax, 8
jb 0x40414d
inc eax
lea ecx, [ebp - 0x870]
push eax
push dword [ebp - 0x870]
call fcn.00401fa0
xor eax, eax
mov dword [ebp - 0x85c], 7
mov word [ebp - 0x870], ax
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x860], 0
cmp eax, 8
jb 0x404188
inc eax
lea ecx, [ebp - 0x840]
push eax
push dword [ebp - 0x840]
call fcn.00401fa0
xor eax, eax
mov dword [ebp - 0x82c], 7
mov word [ebp - 0x840], ax
mov eax, dword [ebp - 0x814]
mov dword [ebp - 0x830], 0
cmp eax, 8
jb 0x4041c3
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.00401fa0
mov ecx, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
cmp ecx, 8
jb 0x4041f5
inc ecx
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00401fa0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043671f
mov esp, ebp
pop ebp
ret 0x28