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

Disassembly:
push 0xffffffffffffffff
push 0x43c995
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4516a0]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4516a0]
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 0x443e0b
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.00406020
mov byte [esp + 0x2b8], 2
push ebx
push 0x443e0b
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00406020
mov byte [esp + 0x2b8], 3
mov ecx, dword [esp + 0x2d4]
push 0x443e0b
push ecx
call fcn.00428188
add esp, 8
cmp eax, ebx
setne al
test al, al
je 0x4047d8
mov ecx, dword [esp + 0x2d4]
mov edx, dword [ecx - 8]
mov eax, ebp
sub eax, dword [ecx - 4]
or edx, eax
jge 0x40475c
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 0x404761
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x60]
call fcn.00406020
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.00406420
mov ecx, esi
call fcn.00406990
add esp, 0x1c
cmp dword [esp + 0x54], 0x10
jb 0x4047b8
mov eax, dword [esp + 0x40]
mov esi, eax
cmp eax, ebx
jne 0x4047bc
xor eax, eax
jmp 0x4047ca
lea esi, [esp + 0x40]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4047c1
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x2dc]
call fcn.00401f80
push str.loader.exe
lea ecx, [esp + 0x24]
call fcn.00401bb0
push str.config.ini
lea eax, [esp + 0x2c4]
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x2c4], 4
call fcn.00401730
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.00429e90
mov eax, dword [esp + 0x38]
add esp, 0xc
push eax
push 0x104
lea ecx, [esp + 0x1ac]
push ecx
push 0x443e0b
push 0x4440c8
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 0x404860
sub eax, edx
je 0x404890
lea eax, [esp + 0x1a4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404875
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.00401cb0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x2d0]
add esp, 4
push eax
lea edi, [esp + 0x1c]
call fcn.004023a0
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.00401cb0
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.00401cb0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [esp + 0x2c0], 6
call fcn.00403190
add esp, 8
test al, al
jne 0x4049f6
mov eax, dword [esp + 0x2c0]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401cb0
lea ecx, [esp + 0x2c]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004036d0
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 0x404973
push 0x80004005
call fcn.004020b0
mov edx, dword [esp + 0x2d0]
push eax
push edx
call fcn.00428188
add esp, 8
cmp eax, ebx
sete al
test al, al
je 0x4049f6
mov eax, dword [esp + 0x2c0]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401cb0
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x40]
add esp, 4
push eax
call fcn.00403360
mov eax, dword [eax]
xor ecx, ecx
add esp, 8
cmp eax, ebx
setne cl
mov dword [esp + 0x1c], 3
cmp ecx, ebx
jne 0x4049d8
push 0x80004005
call fcn.004020b0
mov ecx, dword [esp + 0x2d4]
push eax
push ecx
call fcn.00428188
add esp, 8
cmp eax, ebx
sete al
test al, al
je 0x4049f6
mov bl, 1
jmp 0x4049f8
xor bl, bl
test byte [esp + 0x1c], 2
je 0x404a24
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 0x404a24
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 0x404a56
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 0x404a56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x404b66
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.00405830
add esp, 0xc
call fcn.00402120
add esp, 4
cmp al, 1
jne 0x404b66
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.LUpdater.exe
lea edx, [esp + 0x1c]
push edx
push ecx
call fcn.00401730
add esp, 0xc
call fcn.00402120
add esp, 4
cmp al, 1
jne 0x404b66
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.00401730
add esp, 0xc
call fcn.00402120
add esp, 4
cmp al, 1
jne 0x404b66
push ecx
mov edx, esp
mov dword [esp + 0x1c], esp
push str.libcurl.dll
lea eax, [esp + 0x1c]
push eax
push edx
call fcn.00401730
add esp, 0xc
call fcn.00402120
add esp, 4
cmp al, 1
jne 0x404b66
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.libdata.dll
lea edx, [esp + 0x1c]
push edx
push ecx
call fcn.00401730
add esp, 0xc
call fcn.00402120
add esp, 4
cmp al, 1
jne 0x404b66
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]
call fcn.00406530
lea ecx, [esp + 0x58]
call fcn.00406530
lea ecx, [esp + 0x2c0]
call fcn.00402090
jmp 0x405123
mov eax, dword [esp + 0x2dc]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.0040ad00
mov ebp, eax
xor ebx, ebx
add esp, 8
cmp ebp, ebx
jne 0x404c87
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 0x404baf
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 0x404bd7
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 0x404bff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, 0x10
cmp dword [esp + 0x54], edi
jb 0x404c17
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0040b120
add esp, 4
mov esi, 0xf
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], 0
cmp dword [esp + 0x70], edi
jb 0x404c3c
mov edx, dword [esp + 0x5c]
push edx
call fcn.0040b120
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 0x404c74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x2c4]
call fcn.00401500
xor al, al
jmp 0x405131
xor ebx, ebx
cmp dword [ebp], 1
je 0x404c9b
mov dword [0x455a98], 0x80000
jmp 0x404ccb
mov esi, dword [ebp + 4]
mov edi, dword [esi]
or eax, 0xffffffff
cmp dword [edi + 4], eax
jg 0x404caf
mov eax, 0x10000
jmp 0x404cc6
cmp dword [esi + 4], eax
je 0x404cbc
call fcn.0040a170
or eax, 0xffffffff
mov ecx, dword [esi]
mov dword [esi + 4], eax
mov ebx, dword [ecx + 4]
xor eax, eax
mov dword [0x455a98], eax
xor esi, esi
test ebx, ebx
jle 0x404d83
xor eax, eax
cmp dword [ebp], 1
mov dword [esp + 0x74], eax
mov byte [esp + 0x78], al
mov dword [esp + 0x19c], eax
je 0x404cf8
mov dword [0x455a98], 0x80000
jmp 0x404d0b
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x74]
push edx
push esi
call fcn.0040a330
mov dword [0x455a98], eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x2c4]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00401730
add esp, 0xc
mov byte [esp + 0x2b8], 9
cmp dword [ebp], 1
mov eax, dword [eax]
je 0x404d41
mov dword [0x455a98], 0x80000
jmp 0x404d52
mov ecx, dword [ebp + 4]
push esi
push ecx
mov ecx, eax
call fcn.0040a9f0
mov dword [0x455a98], 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 0x404d7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
cmp esi, ebx
jl 0x404cd5
cmp dword [ebp], 1
je 0x404d98
mov dword [0x455a98], 0x80000
jmp 0x404e37
mov esi, dword [ebp + 4]
cmp dword [esi + 4], 0xffffffff
je 0x404da8
mov edi, dword [esi]
call fcn.0040a170
mov edi, dword [esi]
xor ebx, ebx
mov dword [esi + 4], 0xffffffff
cmp edi, ebx
je 0x404deb
cmp dword [edi + 0x7c], ebx
je 0x404dc1
call fcn.0040a170
mov ebx, dword [edi]
test ebx, ebx
je 0x404de0
cmp byte [ebx + 0x10], 0
je 0x404dd7
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0040b120
add esp, 4
push edi
call fcn.00427aff
add esp, 4
xor ebx, ebx
mov dword [esi], ebx
mov eax, dword [esi + 0x138]
mov dword [0x455a98], ebx
cmp eax, ebx
je 0x404e06
push eax
call fcn.0040b120
add esp, 4
mov eax, dword [esi + 0x13c]
mov dword [esi + 0x138], ebx
cmp eax, ebx
je 0x404e1f
push eax
call fcn.0040b120
add esp, 4
push esi
mov dword [esi + 0x13c], ebx
call fcn.0040b120
add esp, 4
push ebp
call fcn.0040b120
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 0x404e6c
cmp eax, dword [esi]
jne 0x404e6c
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x404ea1
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 0x404e85
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.00427559
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 0x404ee4
cmp eax, dword [esi]
jne 0x404ee4
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x404f19
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 0x404efd
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.00427559
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 0x404f5b
cmp eax, dword [esi]
jne 0x404f5b
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x404f90
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 0x404f74
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.00427559
add esp, 0x10
add edi, 0x10
mov dword [ebp], edi
mov byte [esp + 0x2c4], 6
call fcn.00403a40
add esp, 0xc
push str.ver.ini
lea edx, [esp + 0x2c4]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00401730
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 0x443e30
push eax
call fcn.00428188
add esp, 8
cmp eax, ebx
setne al
test al, al
je 0x405016
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2d0]
push ecx
push edx
push 0x44410c
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 0x405036
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 0x40505e
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 0x405086
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 0x4050ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, 0x10
cmp dword [esp + 0x54], edi
jb 0x4050c6
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0040b120
add esp, 4
mov esi, 0xf
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], 0
cmp dword [esp + 0x70], edi
jb 0x4050eb
mov edx, dword [esp + 0x5c]
push edx
call fcn.0040b120
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 0x405123
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x2c4]
call fcn.00401500
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.004273bb
add esp, 0x2a8
ret 0x20