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

Disassembly:
push 0xffffffffffffffff
push 0x43d025
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x451690]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x451690]
xor eax, esp
push eax
lea eax, [esp + 0x2b0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2d8]
xor ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ebx
push ebx
mov ebp, 1
mov dword [esp + 0x2bc], ebp
mov edi, 0xf
push 0x443e2b
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.00406410
mov byte [esp + 0x2b8], 2
push ebx
push 0x443e2b
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00406410
mov byte [esp + 0x2b8], 3
mov ecx, dword [esp + 0x2d4]
push 0x443e2b
push ecx
call fcn.0042863c
add esp, 8
cmp eax, ebx
setne al
test al, al
je 0x404c28
mov ecx, dword [esp + 0x2d4]
mov edx, dword [ecx - 8]
mov eax, ebp
sub eax, dword [ecx - 4]
or edx, eax
jge 0x404bac
push ebx
lea ecx, [esp + 0x2d8]
call fcn.00401ed0
mov ecx, dword [esp + 0x2d4]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404bb1
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x60]
call fcn.00406410
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x7c]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
lea esi, [esp + 0x64]
mov byte [ecx + 4], 0
call fcn.00406160
mov ecx, esi
call fcn.00406f40
add esp, 0x1c
cmp dword [esp + 0x54], 0x10
jb 0x404c08
mov eax, dword [esp + 0x40]
mov esi, eax
cmp eax, ebx
jne 0x404c0c
xor eax, eax
jmp 0x404c1a
lea esi, [esp + 0x40]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404c11
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x2dc]
call fcn.00401f80
push str.loader.exe
lea ecx, [esp + 0x24]
call fcn.00401ba0
push str.config.ini
lea eax, [esp + 0x2c4]
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x2c4], 4
call fcn.00401720
add esp, 0xc
push 0x103
lea edx, [esp + 0x1a9]
push ebx
mov byte [esp + 0x2c0], 5
push edx
mov byte [esp + 0x1b0], 0
call fcn.0042a4e0
mov eax, dword [esp + 0x38]
add esp, 0xc
push eax
push 0x104
lea ecx, [esp + 0x1ac]
push ecx
push 0x443e2b
push 0x4440e0
push str.CommonSet
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x1a4]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404cb0
sub eax, edx
je 0x404ce0
lea eax, [esp + 0x1a4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404cc5
sub eax, edx
push eax
lea edx, [esp + 0x1a8]
push edx
lea ecx, [esp + 0x28]
call fcn.00401f80
mov eax, dword [esp + 0x2cc]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00401ca0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x2d0]
add esp, 4
push eax
lea edi, [esp + 0x1c]
call fcn.004027f0
mov byte [esp + 0x2c0], 6
mov eax, dword [esp + 0x2cc]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.00401ca0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x2c0], 7
mov eax, dword [esp + 0x2c8]
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00401ca0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [esp + 0x2c0], 6
call fcn.004035e0
add esp, 8
test al, al
jne 0x404e46
mov eax, dword [esp + 0x2c0]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401ca0
lea ecx, [esp + 0x2c]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00403b20
add esp, 8
mov byte [esp + 0x2b8], 8
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esp + 0x1c], ebp
cmp ecx, ebx
jne 0x404dc3
push 0x80004005
call fcn.004020b0
mov edx, dword [esp + 0x2d0]
push eax
push edx
call fcn.0042863c
add esp, 8
cmp eax, ebx
sete al
test al, al
je 0x404e46
mov eax, dword [esp + 0x2c0]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401ca0
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x40]
add esp, 4
push eax
call fcn.004037b0
mov eax, dword [eax]
xor ecx, ecx
add esp, 8
cmp eax, ebx
setne cl
mov dword [esp + 0x1c], 3
cmp ecx, ebx
jne 0x404e28
push 0x80004005
call fcn.004020b0
mov ecx, dword [esp + 0x2d4]
push eax
push ecx
call fcn.0042863c
add esp, 8
cmp eax, ebx
sete al
test al, al
je 0x404e46
mov bl, 1
jmp 0x404e48
xor bl, bl
test byte [esp + 0x1c], 2
je 0x404e74
mov eax, dword [esp + 0x38]
and dword [esp + 0x1c], 0xfffffffd
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404e74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2b8], 6
test byte [esp + 0x1c], 1
je 0x404ea6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ea6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x404fc6
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.00405e10
add esp, 0xc
call fcn.00402120
add esp, 4
cmp al, 1
jne 0x404fc6
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.LUpdater.exe
lea edx, [esp + 0x1c]
push edx
push ecx
call fcn.00401720
add esp, 0xc
call fcn.00402120
add esp, 4
cmp al, 1
jne 0x404fc6
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push str.http_R.dll
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00401720
add esp, 0xc
call fcn.00402120
add esp, 4
cmp al, 1
jne 0x404fc6
push ecx
mov edx, esp
mov dword [esp + 0x1c], esp
push str.libcurl.dll
lea eax, [esp + 0x1c]
push eax
push edx
call fcn.00401720
add esp, 0xc
call fcn.00402120
add esp, 4
cmp al, 1
jne 0x404fc6
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.libdata.dll
lea edx, [esp + 0x1c]
push edx
push ecx
call fcn.00401720
add esp, 0xc
call fcn.00402120
add esp, 4
cmp al, 1
jne 0x404fc6
lea ecx, [esp + 0x14]
call fcn.00402090
lea ecx, [esp + 0x2c]
call fcn.00402090
lea ecx, [esp + 0x20]
call fcn.00402090
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2b8], 2
call fcn.00405f70
lea ecx, [esp + 0x58]
mov byte [esp + 0x2b8], 1
call fcn.00405f70
lea ecx, [esp + 0x2c0]
call fcn.00402090
jmp 0x4055a3
mov eax, dword [esp + 0x2dc]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.0040b2c0
mov ebp, eax
xor ebx, ebx
add esp, 8
cmp ebp, ebx
jne 0x4050f7
mov byte [esp + 0x2b8], 5
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40500f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2b8], 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405037
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2b8], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40505f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, 0x10
mov byte [esp + 0x2b8], 2
cmp dword [esp + 0x54], edi
jb 0x40507f
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0040b6e0
add esp, 4
mov esi, 0xf
mov byte [esp + 0x2b8], 1
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], 0
cmp dword [esp + 0x70], edi
jb 0x4050ac
mov edx, dword [esp + 0x5c]
push edx
call fcn.0040b6e0
add esp, 4
mov byte [esp + 0x2b8], 0
mov eax, dword [esp + 0x2c0]
add eax, 0xfffffff0
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4050e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x2c4]
call fcn.004014f0
xor al, al
jmp 0x4055b1
xor ebx, ebx
cmp dword [ebp], 1
je 0x40510b
mov dword [0x455aa0], 0x80000
jmp 0x40513b
mov esi, dword [ebp + 4]
mov edi, dword [esi]
or eax, 0xffffffff
cmp dword [edi + 4], eax
jg 0x40511f
mov eax, 0x10000
jmp 0x405136
cmp dword [esi + 4], eax
je 0x40512c
call fcn.0040a730
or eax, 0xffffffff
mov ecx, dword [esi]
mov dword [esi + 4], eax
mov ebx, dword [ecx + 4]
xor eax, eax
mov dword [0x455aa0], eax
xor esi, esi
test ebx, ebx
jle 0x4051f3
xor eax, eax
cmp dword [ebp], 1
mov dword [esp + 0x74], eax
mov byte [esp + 0x78], al
mov dword [esp + 0x19c], eax
je 0x405168
mov dword [0x455aa0], 0x80000
jmp 0x40517b
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x74]
push edx
push esi
call fcn.0040a8f0
mov dword [0x455aa0], eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x2c4]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00401720
add esp, 0xc
mov byte [esp + 0x2b8], 9
cmp dword [ebp], 1
mov eax, dword [eax]
je 0x4051b1
mov dword [0x455aa0], 0x80000
jmp 0x4051c2
mov ecx, dword [ebp + 4]
push esi
push ecx
mov ecx, eax
call fcn.0040afb0
mov dword [0x455aa0], eax
mov byte [esp + 0x2b8], 6
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4051ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
cmp esi, ebx
jl 0x405145
cmp dword [ebp], 1
je 0x405208
mov dword [0x455aa0], 0x80000
jmp 0x4052a7
mov esi, dword [ebp + 4]
cmp dword [esi + 4], 0xffffffff
je 0x405218
mov edi, dword [esi]
call fcn.0040a730
mov edi, dword [esi]
xor ebx, ebx
mov dword [esi + 4], 0xffffffff
cmp edi, ebx
je 0x40525b
cmp dword [edi + 0x7c], ebx
je 0x405231
call fcn.0040a730
mov ebx, dword [edi]
test ebx, ebx
je 0x405250
cmp byte [ebx + 0x10], 0
je 0x405247
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0040b6e0
add esp, 4
push edi
call fcn.00428670
add esp, 4
xor ebx, ebx
mov dword [esi], ebx
mov eax, dword [esi + 0x138]
mov dword [0x455aa0], ebx
cmp eax, ebx
je 0x405276
push eax
call fcn.0040b6e0
add esp, 4
mov eax, dword [esi + 0x13c]
mov dword [esi + 0x138], ebx
cmp eax, ebx
je 0x40528f
push eax
call fcn.0040b6e0
add esp, 4
push esi
mov dword [esi + 0x13c], ebx
call fcn.0040b6e0
add esp, 4
push ebp
call fcn.0040b6e0
add esp, 4
mov esi, dword [esp + 0x2d4]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x1c], esp
mov ebp, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4052dc
cmp eax, dword [esi]
jne 0x4052dc
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x405311
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x4052f5
call fcn.00401e80
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00427b12
add esp, 0x10
add edi, 0x10
mov dword [ebp], edi
mov byte [esp + 0x2bc], 0xa
mov esi, dword [esp + 0x2d4]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x3c], esp
mov ebp, esp
call eax
lea ecx, [esi + 0xc]
xor ebx, ebx
cmp dword [ecx], ebx
jl 0x405354
cmp eax, dword [esi]
jne 0x405354
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x405389
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebx
jne 0x40536d
call fcn.00401e80
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00427b12
add esp, 0x10
add edi, 0x10
mov dword [ebp], edi
mov byte [esp + 0x2c0], 0xb
mov esi, dword [esp + 0x2c8]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x34], esp
mov ebp, esp
call eax
cmp dword [esi + 0xc], ebx
lea ecx, [esi + 0xc]
jl 0x4053cb
cmp eax, dword [esi]
jne 0x4053cb
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x405400
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebx
jne 0x4053e4
call fcn.00401e80
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00427b12
add esp, 0x10
add edi, 0x10
mov dword [ebp], edi
mov byte [esp + 0x2c4], 6
call fcn.00403e90
add esp, 0xc
push str.ver.ini
lea edx, [esp + 0x2c4]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00401720
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2d0]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
push ecx
push edx
push str.version
push str.option
call esi
mov eax, dword [esp + 0x2cc]
push 0x443e4c
push eax
call fcn.0042863c
add esp, 8
cmp eax, ebx
setne al
test al, al
je 0x405486
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2d0]
push ecx
push edx
push 0x444124
push str.option
call esi
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2b8], 5
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2b8], 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2b8], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40551e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, 0x10
mov byte [esp + 0x2b8], 2
cmp dword [esp + 0x54], edi
jb 0x40553e
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0040b6e0
add esp, 4
mov esi, 0xf
mov byte [esp + 0x2b8], 1
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], 0
cmp dword [esp + 0x70], edi
jb 0x40556b
mov edx, dword [esp + 0x5c]
push edx
call fcn.0040b6e0
add esp, 4
mov byte [esp + 0x2b8], 0
mov eax, dword [esp + 0x2c0]
add eax, 0xfffffff0
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4055a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x2c4]
call fcn.004014f0
mov al, 1
mov ecx, dword [esp + 0x2b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.00427974
add esp, 0x2a8
ret 0x20