Function at 0x40d670
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44f798
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x46414c]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, edx
push esi
xor ebx, ebx
push ebx
push str.Allworks
mov edi, ecx
push str.Config
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ebp, ebp
mov dword [esp + 0x20], eax
test eax, eax
jbe 0x40df09
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push ebp
lea eax, [esp + 0x2c]
push str.WorkId_d
push eax
call ebx
add esp, 0xc
push esi
push 0
lea ecx, [esp + 0x30]
push ecx
push str.WorkId
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, dword [edi]
je 0x40d70b
inc ebp
cmp ebp, dword [esp + 0x20]
jb 0x40d6d6
xor eax, eax
jmp 0x40df0b
push ebp
lea edx, [esp + 0x2c]
push str.Type_d
push edx
call ebx
add esp, 0xc
push esi
push 0
lea eax, [esp + 0x30]
push eax
push str.WorkType
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ebp
lea ecx, [esp + 0x2c]
push str.Name_d
push ecx
mov dword [edi + 0x28], eax
call ebx
push esi
push 0x45b7b0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x30]
push str.WorkName
push eax
call fcn.00414180
add esp, 0x20
add edi, 0x10
mov dword [esp + 0x5c], 0
mov ecx, dword [eax]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40d7b8
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40d7ad
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40d7ad
call fcn.00401850
mov dword [esp + 0x20], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40d7a2
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x40d7b8
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.004053c0
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d7e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x14]
mov edi, dword [ebx + 0x10]
lea esi, [esp + 0x20]
call fcn.00423620
mov dword [esp + 0x5c], 1
mov ecx, dword [eax]
mov esi, dword [ebx + 0x10]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40d855
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40d841
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40d841
call fcn.00401850
mov dword [esp + 0x18], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40d835
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [ebx + 0x10], ecx
jmp 0x40d855
mov eax, dword [esp + 0x14]
mov ebx, dword [ecx - 0xc]
push ecx
add eax, 0x10
call fcn.004053c0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d87d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
lea ecx, [esp + 0x2c]
push str.Link_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [esp + 0x30]
push edx
push 0x45b7b0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x34]
push str.WorkLink
push ecx
call fcn.00414180
add esp, 0x20
mov dword [esp + 0x5c], 2
mov edi, dword [eax]
lea esi, [esp + 0x20]
call fcn.00423620
mov byte [esp + 0x5c], 3
mov ecx, dword [eax]
mov esi, dword [ebx + 8]
lea edi, [ebx + 8]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40d921
cmp dword [esi + 0xc], 0
jl 0x40d912
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40d912
call fcn.00401850
mov dword [esp + 0x18], eax
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d907
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x40d921
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.004053c0
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x5c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d946
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d96e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
lea ecx, [esp + 0x2c]
push str.PreFix_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [esp + 0x30]
push edx
push 0x45b7b0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
push str.WorkPrefix
push ecx
call fcn.00414180
add esp, 0x20
mov dword [esp + 0x5c], 4
mov ecx, dword [eax]
mov esi, dword [ebx + 0x14]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40da05
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40d9f1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40d9f1
call fcn.00401850
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40d9e5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [ebx + 0x14], ecx
jmp 0x40da05
mov eax, dword [esp + 0x14]
mov ebx, dword [ecx - 0xc]
push ecx
add eax, 0x14
call fcn.004053c0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40da2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx + 0x14]
lea esi, [esp + 0x18]
call fcn.00423620
mov dword [esp + 0x5c], 5
mov ecx, dword [eax]
mov esi, dword [ebx + 0x14]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40da9e
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40da8a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40da8a
call fcn.00401850
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40da7e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [ebx + 0x14], ecx
jmp 0x40da9e
mov eax, dword [esp + 0x14]
mov ebx, dword [ecx - 0xc]
push ecx
add eax, 0x14
call fcn.004053c0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dac6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push ebp
lea ecx, [esp + 0x2c]
push str.Dir_d
push ecx
call esi
mov edi, dword [esp + 0x30]
add esp, 0xc
push edi
push 0
lea edx, [esp + 0x30]
push edx
push str.WorkDir
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ebp
mov dword [ebx + 0x2c], eax
lea eax, [esp + 0x2c]
push 0x45d6c0
push eax
call esi
push edi
push 0x45b7b0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x30]
push str.WorkMd5
push edx
call fcn.00414180
add esp, 0x20
mov dword [esp + 0x5c], 6
mov ecx, dword [eax]
mov esi, dword [ebx + 4]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40db85
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40db71
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40db71
call fcn.00401850
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40db65
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [ebx + 4], ecx
jmp 0x40db85
mov eax, dword [esp + 0x14]
mov ebx, dword [ecx - 0xc]
push ecx
add eax, 4
call fcn.004053c0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dbad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx + 4]
lea esi, [esp + 0x18]
call fcn.00423620
mov dword [esp + 0x5c], 7
mov ecx, dword [eax]
mov esi, dword [ebx + 4]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40dc1e
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40dc0a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40dc0a
call fcn.00401850
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40dbfe
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [ebx + 4], ecx
jmp 0x40dc1e
mov eax, dword [esp + 0x14]
mov ebx, dword [ecx - 0xc]
push ecx
add eax, 4
call fcn.004053c0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dc46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push ebp
lea ecx, [esp + 0x2c]
push str.Delay_d
push ecx
call esi
mov edi, dword [esp + 0x30]
add esp, 0xc
push edi
push 0
lea edx, [esp + 0x30]
push edx
push str.WorkDelay
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ebp
mov dword [ebx + 0x30], eax
lea eax, [esp + 0x2c]
push 0x45d6e8
push eax
call esi
push edi
push 0x45b7b0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x30]
push str.Call
push edx
call fcn.00414180
add esp, 0x20
mov dword [esp + 0x5c], 8
mov ecx, dword [eax]
mov esi, dword [ebx + 0x24]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40dd05
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40dcf1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40dcf1
call fcn.00401850
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40dce5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [ebx + 0x24], ecx
jmp 0x40dd05
mov eax, dword [esp + 0x14]
mov ebx, dword [ecx - 0xc]
push ecx
add eax, 0x24
call fcn.004053c0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dd2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx + 0x24]
lea esi, [esp + 0x18]
call fcn.00423620
mov dword [esp + 0x5c], 9
mov ecx, dword [eax]
mov esi, dword [ebx + 0x24]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40dd9e
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40dd8a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40dd8a
call fcn.00401850
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40dd7e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [ebx + 0x24], ecx
jmp 0x40dd9e
mov eax, dword [esp + 0x14]
mov ebx, dword [ecx - 0xc]
push ecx
add eax, 0x24
call fcn.004053c0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ddc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
lea ecx, [esp + 0x2c]
push str.Cmd_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x46ecec
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x5c], 0xa
mov ecx, dword [esp + 0x24]
push ecx
push 0x45b7b0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push str.WorkCmd
push eax
call fcn.00414180
add esp, 0x14
mov byte [esp + 0x5c], 0xb
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x40de75
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40de60
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40de60
call fcn.00401850
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40de57
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x20], ebp
jmp 0x40de75
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x24]
call fcn.004053c0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x5c], 0xa
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0xc], 0
jle 0x40dedd
mov edi, ebp
lea esi, [esp + 0x24]
call fcn.00423620
lea edi, [ebx + 0x20]
mov byte [esp + 0x5c], 0xc
call fcn.004050a0
mov byte [esp + 0x5c], 0xa
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 0x40dedd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df02
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, 1
jmp 0x40df0b
mov eax, ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0042404d
add esp, 0x4c
ret