Function at 0x404730
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568a69
mov eax, dword fs:[0]
push eax
sub esp, 0x14
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 ebx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x14]
mov edi, 1
push eax
mov ecx, 0x5e3c90
mov dword [ebp - 4], edi
call fcn.004261a0
mov eax, dword [eax]
push eax
push 0
push str.Number
push str.Temporary
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
push 0x580060
call fcn.00404670
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
mov dword [ebp - 0x18], edi
xor edi, edi
test eax, eax
jle 0x404864
jmp 0x4047d8
mov esi, dword [ebp - 0x1c]
test edi, edi
js 0x4048ba
cmp edi, eax
jg 0x4048ba
movzx eax, word [ecx + edi*2]
lea ecx, [eax - 0x20]
sub eax, esi
movzx edx, ax
mov dword [ebp - 0x14], edx
cmp ecx, esi
jge 0x404806
sub ecx, esi
add ecx, 0x7f
movzx eax, cx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ebx, dword [eax - 0xc]
lea esi, [ebx + 1]
test esi, esi
js 0x4048ba
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x404833
mov ecx, dword [ebp + 8]
push esi
call fcn.00401de0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov dx, word [ebp - 0x14]
mov word [eax + ebx*2], dx
mov eax, dword [ecx]
cmp esi, dword [eax - 8]
jg 0x4048ba
mov dword [eax - 0xc], esi
mov eax, dword [ecx]
xor ecx, ecx
mov word [eax + esi*2], cx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
inc edi
cmp edi, eax
jl 0x4047d5
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
call fcn.004016c0
push 0x580060
lea ecx, [ebp - 0x10]
call fcn.00404670
lea edx, [ebp - 0x20]
push edx
mov ecx, 0x5e3c90
mov byte [ebp - 4], 2
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], 3
jge 0x4048b5
push edi
lea ecx, [ebp - 0x10]
call fcn.00401de0
mov edx, dword [ebp - 0x10]
cmp dword [edx - 8], edi
jge 0x4048c4
push 0x80070057
call fcn.00401330
push esi
push edi
push edx
push 0x580060
mov dword [edx - 0xc], edi
mov ecx, dword [ebp - 0x10]
push str.ExtractPasswordRequired
xor eax, eax
push 0x580298
mov word [ecx + 0x800], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40490e
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 0x4048ba
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x4048ba
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x5e3c90
call fcn.004261a0
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push 0
push str.ExtractPasswordRequired
push 0x580298
call esi
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40497a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, 0x5e3c90
call fcn.004261a0
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
push eax
push edx
push str.Required
push 0x580278
call esi
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, 0x5e3c90
call fcn.004261a0
mov eax, dword [eax]
push eax
push 0
push str.ExtractionPassword
push 0x580298
call esi
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4049f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, 0x5e3c90
call fcn.004261a0
mov eax, dword [eax]
push eax
push 0
push str.Number
push str.Temporary
call esi
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404a36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, ebx
call fcn.00402560
lea ecx, [ebp - 0x20]
push ecx
mov ecx, 0x5e3c90
call fcn.004261a0
mov edi, dword [eax]
mov eax, dword [ebx + 0x1d4]
lea esi, [ebx + 0x1d4]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
mov ebx, 0x400
sub eax, ebx
or eax, ecx
mov byte [ebp - 4], 4
jge 0x404a7b
push ebx
mov ecx, esi
call fcn.00401de0
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jge 0x404a8c
push 0x80070057
call fcn.00401330
push edi
push ebx
push eax
push 0x580060
mov dword [eax - 0xc], ebx
mov edx, dword [esi]
push str.Required
xor ecx, ecx
push 0x580278
mov word [edx + 0x800], cx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404ad5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x404af0
push ecx
push eax
call fcn.0054d87f
add esp, 8
test eax, eax
js 0x4048ba
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4048ba
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x10]
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 0x404b29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
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 0x404b4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8