Function at 0x407ef0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x5e2500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
call fcn.0044c93b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407f3c
push 0x80004005
call fcn.00401330
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov ecx, 0x5e3c90
mov byte [ebp - 4], 1
call fcn.00426ef0
push eax
lea ecx, [ebp - 0x1c]
push 0x580c80
push ecx
call fcn.00403430
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, 0x580060
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407f99
test dx, dx
je 0x407f95
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407f99
add eax, 4
add ecx, 4
test dx, dx
jne 0x407f73
xor eax, eax
jmp 0x407f9e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4082fc
push 0xa
lea ecx, [ebp - 0x58]
call fcn.0044f2c9
lea edx, [ebp - 0x28]
push edx
mov ecx, 0x5e3c90
mov byte [ebp - 4], 2
call fcn.004261a0
push 0x800
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp + 8]
push edx
push eax
mov ecx, 0x5e3e60
mov byte [ebp - 4], 3
call fcn.00432470
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408001
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0044c93b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40801b
push 0x80004005
call fcn.00401330
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
call fcn.0044c93b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408048
push 0x80004005
call fcn.00401330
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x4c]
neg eax
sbb eax, eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x2c], eax
je 0x4082aa
mov bl, 9
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x58]
call fcn.0044f3bc
push str.ReturnCode_
lea ecx, [ebp - 0x34]
call fcn.00404670
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
push eax
push 0
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.004030d0
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4080c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x28]
push str.ReturnCode_
push ecx
call fcn.0054d1d7
add esp, 8
test eax, eax
jne 0x40827d
mov edx, dword [ebp - 0x18]
cmp dword [edx - 0xc], eax
je 0x40827d
push 0x580060
lea ecx, [ebp - 0x14]
call fcn.00404670
mov edx, dword [ebp - 0x10]
mov esi, dword [edx - 0xc]
mov byte [ebp - 4], bl
test esi, esi
js 0x40838f
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x408129
push esi
lea ecx, [ebp - 0x10]
call fcn.00401de0
mov edx, dword [ebp - 0x10]
lea eax, [esi + 1]
push eax
push edx
call fcn.0054d48c
mov eax, dword [ebp - 0x10]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x40838f
mov dword [eax - 0xc], esi
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + esi*2], cx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea edx, [ebp - 0x14]
push str._s:_s
push edx
call fcn.00403430
mov eax, dword [ebp - 0x1c]
add esp, 0xc
add eax, 0xfffffff0
mov dword [ebp - 0x38], esp
mov esi, esp
push eax
call fcn.00401e40
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 0x3c], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0xa
call fcn.00401e40
mov ecx, dword [ebp - 0x20]
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], bl
call fcn.00406c70
mov eax, dword [ebp - 0x14]
mov esi, dword [eax - 0xc]
mov byte [ebp - 4], 0xb
test esi, esi
js 0x40838f
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x4081d8
push esi
lea ecx, [ebp - 0x14]
call fcn.00401de0
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0054d48c
mov eax, dword [ebp - 0x14]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x40838f
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x14]
xor edx, edx
mov word [eax + esi*2], dx
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0x240
call fcn.0044f4d2
test edi, edi
jne 0x40821a
xor edx, edx
jmp 0x40822f
mov edx, edi
lea ecx, [edx + 2]
nop
mov si, word [edx]
add edx, 2
test si, si
jne 0x408220
sub edx, ecx
sar edx, 1
push edx
push edi
mov ecx, eax
call fcn.00402870
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40825a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40827d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x2c], 0
jne 0x40806d
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0044f384
push 0x580060
lea ecx, [ebp - 0x30]
call fcn.00404670
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x30]
push edx
add ecx, 0x25c
push str.MessageOnFinish
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x2c], ecx
call fcn.0044f38f
test eax, eax
jne 0x40846d
push 0xa
lea ecx, [ebp - 0x58]
call fcn.0044f2c9
push 0x580060
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xd
call fcn.00404670
lea eax, [ebp - 0x34]
mov bl, 0xe
push eax
mov ecx, 0x5e3c90
mov byte [ebp - 4], bl
call fcn.004261a0
mov esi, dword [eax]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
mov edi, 0x400
sub eax, edi
or eax, ecx
mov byte [ebp - 4], 0xf
jge 0x408388
push edi
lea ecx, [ebp - 0x10]
call fcn.00401de0
mov edx, dword [ebp - 0x10]
mov eax, edx
cmp dword [edx - 8], edi
jge 0x408399
push 0x80070057
call fcn.00401330
push esi
push edi
push eax
mov eax, dword [ebp - 0x1c]
push 0x580060
mov dword [edx - 0xc], edi
mov edx, dword [ebp - 0x10]
push str.MessageOnFinish
xor ecx, ecx
push eax
mov word [edx + 0x800], cx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4083e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0054d87f
add esp, 8
test eax, eax
js 0x40838f
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x40838f
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x10]
push str.MessageOnFinish
call fcn.0044f4d2
test esi, esi
jne 0x408421
xor edx, edx
jmp 0x408435
mov edx, esi
lea ecx, [edx + 2]
mov di, word [edx]
add edx, 2
test di, di
jne 0x408426
sub edx, ecx
sar edx, 1
push edx
push esi
mov ecx, eax
call fcn.00402870
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408461
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xc
call fcn.0044f384
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408490
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4