Function at 0x4086b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545146
mov eax, dword fs:[0]
push eax
sub esp, 0xa98
mov eax, dword [0x5a8040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xa98], ebx
movdqu xmm0, xmmword [str.PostInstall]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x84c]
push 0x1f8
movdqu xmmword [ebp - 0x2c], xmm0
push 0
movq xmm0, qword [0x589e7c]
movq qword [ebp - 0x1c], xmm0
movdqu xmm0, xmmword [str.ExtRun0]
push eax
mov dword [ebp - 0xaa0], edi
movdqu xmmword [ebp - 0x85c], xmm0
call fcn.0052c790
movdqu xmm0, xmmword [str.ExtRunParam0]
mov ax, word [0x589eac]
push 0x1ee
mov word [ebp - 0x63c], ax
lea eax, [ebp - 0x63a]
movdqu xmmword [ebp - 0x654], xmm0
push 0
movq xmm0, qword [0x589ea4]
push eax
movq qword [ebp - 0x644], xmm0
call fcn.0052c790
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x244], ax
lea eax, [ebp - 0x242]
push eax
call fcn.0052c790
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa64], ax
lea eax, [ebp - 0xa62]
push eax
call fcn.0052c790
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x30
xor eax, eax
mov dword [ebp - 0xa9c], 0
mov word [ebp - 0x38], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x244]
movq qword [ebp - 0x36], xmm0
push edi
push 0x104
push eax
push 0x58877c
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x2c]
push eax
call esi
push edi
test eax, eax
je 0x408d3e
push 0x104
lea eax, [ebp - 0xa64]
push eax
push 0x58877c
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x2c]
push eax
call esi
xor eax, eax
lea ecx, [ebp - 0x38]
push 0xa
mov word [ebp - 0x850], ax
mov word [ebp - 0x63e], ax
mov eax, dword [ebp - 0xa9c]
push 5
inc eax
push ecx
push eax
mov dword [ebp - 0xa9c], eax
call fcn.0052b93d
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x85c]
push 0x104
push eax
call fcn.0052b0fb
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x654]
push 0x104
push eax
call fcn.0052b0fb
lea eax, [ebp - 0x244]
push str.SOURCE
push eax
call fcn.0052b195
lea ecx, [ebp - 0x244]
add esp, 0x30
cmp ecx, eax
jne 0x408952
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x44c], ax
lea eax, [ebp - 0x44a]
push eax
call fcn.0052c790
add esp, 0xc
lea eax, [ebp - 0x44c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x44c]
lea edx, [eax + 2]
jmp 0x4088c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4088c0
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x44e], 0x5c
je 0x40891f
lea ebx, [ebx]
lea eax, [eax*2 - 2]
cmp eax, 0x208
jae 0x408d39
xor ecx, ecx
mov word [ebp + eax - 0x44c], cx
lea eax, [ebp - 0x44c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408905
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x44e], 0x5c
jne 0x4088e0
lea eax, [ebp - 0x236]
push eax
lea eax, [ebp - 0x44c]
push 0x104
push eax
call fcn.0052b0fb
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x244]
push 0x104
push eax
call fcn.0052b09f
add esp, 0x18
xor eax, eax
mov dword [ebp - 0xa80], 7
mov dword [ebp - 0xa84], 0
mov word [ebp - 0xa94], ax
cmp word [ebp - 0x244], ax
jne 0x40897c
xor ecx, ecx
jmp 0x408994
lea ecx, [ebp - 0x244]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408985
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0xa94]
call fcn.00405e40
lea esi, [ebx + 0xc60]
mov dword [ebp - 4], 0
mov ebx, dword [esi + 4]
lea eax, [ebp - 0xa94]
cmp eax, ebx
jae 0x408a64
mov eax, dword [esi]
lea ecx, [ebp - 0xa94]
cmp eax, ecx
ja 0x408a64
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [esi + 8]
jne 0x4089f5
push ecx
mov ecx, esi
call fcn.0040adf0
mov eax, dword [esi]
lea ecx, [edi + edi*2]
mov ebx, dword [esi + 4]
lea edi, [eax + ecx*8]
test ebx, ebx
je 0x408af3
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp dword [edi + 0x14], 8
jae 0x408a36
mov eax, dword [edi + 0x10]
inc eax
je 0x408a40
add eax, eax
push eax
push edi
push ebx
call fcn.00529e20
add esp, 0xc
jmp 0x408a40
mov eax, dword [edi]
mov dword [ebx], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
jmp 0x408af3
cmp ebx, dword [esi + 8]
jne 0x408a71
push ecx
mov ecx, esi
call fcn.0040adf0
mov edi, dword [esi + 4]
test edi, edi
je 0x408af3
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [ebp - 0xa80], 8
jae 0x408ab2
mov eax, dword [ebp - 0xa84]
inc eax
je 0x408ac4
add eax, eax
push eax
lea eax, [ebp - 0xa94]
push eax
push edi
call fcn.00529e20
add esp, 0xc
jmp 0x408ac4
mov eax, dword [ebp - 0xa94]
mov dword [edi], eax
mov dword [ebp - 0xa94], 0
mov eax, dword [ebp - 0xa84]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0xa80]
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [ebp - 0xa80], 7
mov dword [ebp - 0xa84], 0
mov word [ebp - 0xa94], ax
add dword [esi + 4], 0x18
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xa80], 8
jb 0x408b15
push dword [ebp - 0xa94]
call fcn.0040b23d
add esp, 4
xor eax, eax
mov dword [ebp - 0xa68], 7
mov dword [ebp - 0xa6c], 0
mov word [ebp - 0xa7c], ax
cmp word [ebp - 0xa64], ax
jne 0x408b3f
xor ecx, ecx
jmp 0x408b5f
lea ecx, [ebp - 0xa64]
lea edx, [ecx + 2]
jmp 0x408b50
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408b50
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xa64]
push eax
lea ecx, [ebp - 0xa7c]
call fcn.00405e40
mov esi, dword [ebp - 0xa98]
lea eax, [ebp - 0xa7c]
add esi, 0xc6c
mov dword [ebp - 4], 1
mov ebx, dword [esi + 4]
cmp eax, ebx
jae 0x408c35
mov eax, dword [esi]
lea ecx, [ebp - 0xa7c]
cmp eax, ecx
ja 0x408c35
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [esi + 8]
jne 0x408bc6
push ecx
mov ecx, esi
call fcn.0040adf0
mov eax, dword [esi]
lea ecx, [edi + edi*2]
mov ebx, dword [esi + 4]
lea edi, [eax + ecx*8]
test ebx, ebx
je 0x408cc4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp dword [edi + 0x14], 8
jae 0x408c07
mov eax, dword [edi + 0x10]
inc eax
je 0x408c11
add eax, eax
push eax
push edi
push ebx
call fcn.00529e20
add esp, 0xc
jmp 0x408c11
mov eax, dword [edi]
mov dword [ebx], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
jmp 0x408cc4
cmp ebx, dword [esi + 8]
jne 0x408c42
push ecx
mov ecx, esi
call fcn.0040adf0
mov edi, dword [esi + 4]
test edi, edi
je 0x408cc4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [ebp - 0xa68], 8
jae 0x408c83
mov eax, dword [ebp - 0xa6c]
inc eax
je 0x408c95
add eax, eax
push eax
lea eax, [ebp - 0xa7c]
push eax
push edi
call fcn.00529e20
add esp, 0xc
jmp 0x408c95
mov eax, dword [ebp - 0xa7c]
mov dword [edi], eax
mov dword [ebp - 0xa7c], 0
mov eax, dword [ebp - 0xa6c]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0xa68]
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [ebp - 0xa68], 7
mov dword [ebp - 0xa6c], 0
mov word [ebp - 0xa7c], ax
add dword [esi + 4], 0x18
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xa68], 8
jb 0x408ce6
push dword [ebp - 0xa7c]
call fcn.0040b23d
add esp, 4
mov edi, dword [ebp - 0xaa0]
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
mov word [ebp - 0xa7c], ax
lea eax, [ebp - 0x244]
push 0x104
push eax
push 0x58877c
lea eax, [ebp - 0x85c]
mov dword [ebp - 0xa68], 7
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xa6c], 0
push eax
call esi
mov ebx, dword [ebp - 0xa98]
jmp 0x4087e2
call fcn.0052b861
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [ebp - 0x2c]
push 0xffffffffffffffff
push str.Auto
push eax
call esi
push edi
push 0xffffffffffffffff
mov dword [ebx + 0xc78], eax
lea eax, [ebp - 0x2c]
push str.ServerType
push eax
call esi
push edi
push 0x104
mov dword [ebx + 0x1298], eax
lea eax, [ebx + 0xc80]
push eax
push 0x58877c
push str.ServerPath
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push 0x104
lea eax, [ebx + 0x1090]
push eax
push 0x58877c
push str.ServerPassWD
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push 0x104
lea eax, [ebx + 0xe88]
push eax
push 0x58877c
push str.ServerUserID
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push 0xffffffffffffffff
push str.HMLImageCompress
lea eax, [ebp - 0x2c]
push eax
call esi
push edi
push 0xffffffffffffffff
mov dword [ebx + 0x129c], eax
lea eax, [ebp - 0x2c]
push str.ActiveDocument
push eax
call esi
mov dword [ebx + 0x12a0], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00529d59
mov esp, ebp
pop ebp
ret 4