Function at 0x421790
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453fbb
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x46b664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov edi, edx
push eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x8c], ebx
call fcn.00421010
mov dword [ebp - 4], ebx
xor edx, edx
mov edi, 7
push 5
mov eax, str.Level
lea esi, [ebp - 0x48]
mov dword [ebp - 0x8c], 1
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
call fcn.0040eba0
mov dword [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x2c], ax
push 5
mov eax, str.Trace
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.0040eba0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x84]
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x88]
mov edx, 8
cmp dword [ecx + 0x14], edx
jb 0x42184d
mov ecx, dword [ecx]
mov esi, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edx
jae 0x421858
lea esi, [ebp - 0x48]
cmp dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x2c]
jae 0x421863
lea edx, [ebp - 0x2c]
push ecx
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
jb 0x421885
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00431dda
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], 8
jb 0x4218a6
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00431dda
add esp, 4
xor edx, edx
lea eax, [esi - 1]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp eax, 2
ja 0x4218c2
mov ecx, dword [ebp - 0x84]
mov dword [ecx], esi
xor edx, edx
push 5
mov eax, str.Flush
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.0040eba0
mov dword [ebp - 4], 3
xor eax, eax
mov word [ebp - 0x48], ax
push 5
mov eax, str.Trace
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
call fcn.0040eba0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x84]
movzx eax, byte [ecx + 0x5d]
mov ecx, dword [ebp - 0x88]
mov esi, 8
cmp dword [ecx + 0x14], esi
jb 0x421921
mov edx, dword [ecx]
jmp 0x421923
mov edx, ecx
cmp dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x2c]
jae 0x42192e
lea esi, [ebp - 0x2c]
cmp dword [ebp - 0x34], 8
mov ecx, dword [ebp - 0x48]
jae 0x42193a
lea ecx, [ebp - 0x48]
push edx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x34], 8
jb 0x42195c
mov edx, dword [ebp - 0x48]
push edx
call fcn.00431dda
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x42197d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00431dda
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp esi, ebx
je 0x421997
mov eax, dword [ebp - 0x84]
mov byte [eax + 0x5d], 1
xor ecx, ecx
push 9
mov eax, str.MaxBackup
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
call fcn.0040eba0
mov dword [ebp - 4], 5
xor edx, edx
push 5
mov eax, str.Trace
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
call fcn.0040eba0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 4]
mov edx, 8
cmp dword [ecx + 0x14], edx
jb 0x4219f3
mov ecx, dword [ecx]
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edx
jae 0x4219fe
lea esi, [ebp - 0x2c]
cmp dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x48]
jae 0x421a09
lea edx, [ebp - 0x48]
push ecx
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x34], 8
jb 0x421a2b
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00431dda
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x421a4c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00431dda
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp esi, 0xff
ja 0x421a69
mov edx, dword [ebp - 0x84]
mov dword [edx + 4], esi
xor eax, eax
mov word [ebp - 0x80], ax
push ebx
mov eax, 0x45c490
lea esi, [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
call fcn.0040eba0
mov dword [ebp - 4], edi
xor ecx, ecx
push 9
mov eax, str.TargetDir
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
call fcn.0040eba0
mov byte [ebp - 4], 8
xor edx, edx
push 5
mov eax, str.Trace
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
call fcn.0040eba0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x88]
push eax
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, esi
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.0041c1c0
add esp, 0x14
mov byte [ebp - 4], 0xa
mov esi, dword [ebp - 0x84]
add esi, 0x40
mov edi, eax
call fcn.0040b5a0
mov byte [ebp - 4], 9
mov edi, 8
cmp dword [ebp - 0x50], edi
jb 0x421b10
mov edx, dword [ebp - 0x64]
push edx
call fcn.00431dda
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], edi
jb 0x421b35
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00431dda
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov byte [ebp - 4], 7
cmp dword [ebp - 0x18], edi
jb 0x421b5a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00431dda
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x6c], edi
jb 0x421b7e
mov edx, dword [ebp - 0x80]
push edx
call fcn.00431dda
add esp, 4
xor eax, eax
mov word [ebp - 0x80], ax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
cmp dword [eax + 0x50], ebx
je 0x421bdc
mov ecx, esi
lea edx, [ebp - 0x64]
call fcn.0041af50
mov dword [ebp - 4], 0xb
mov edi, eax
call fcn.0040b5a0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], 8
jb 0x421bc6
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00431dda
add esp, 4
mov eax, dword [ebp - 0x84]
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431de5
mov esp, ebp
pop ebp
ret