Function at 0x420874
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
cmp byte [ebp + 0x14], 0
push ebx
push esi
push edi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x18], ecx
je 0x420ddc
xor edi, edi
inc edi
xor esi, esi
mov dword [ebp + 0x14], edi
mov dword [ebp - 0x14], 0x37ac
mov dword [ebp - 0x10], 0x51938d10
mov dword [ebp + 0x14], esi
jmp 0x42092e
mov dword [ebp - 4], 0x8bb4aad9
mov ecx, 0x57f2e3e3
mov dword [ebp - 8], 0xfffffffe
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
sub ecx, eax
add ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x14]
neg ecx
sbb ecx, ecx
inc ecx
cmp ecx, dword [ebp + 0x14]
jne 0x4208f5
mov eax, dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 4], esi
je 0x420910
mov eax, edi
cmp dword [ebp - 8], esi
jne 0x420912
mov eax, esi
xor edx, edx
cmp eax, 7
setle dl
xor ecx, ecx
imul edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp edx, eax
setl cl
mov dword [ebp - 0x10], ecx
dec dword [ebp + 0x14]
cmp dword [ebp + 0x14], 0xfffffff3
jle 0x4208ae
push 3
pop ebx
push ebx
lea ecx, [ebp - 0xa8]
call fcn.00413c51
mov dword [ebp + 0x14], 0x7a876e6b
mov dword [ebp + 0x14], 0x36444696
push 7
pop eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x14], 0x813f1a07
mov dword [ebp + 0x14], 5
mov dword [ebp + 0x14], 0xfffffffc
mov dword [ebp + 0x14], 0x7e08a110
mov dword [ebp + 0x14], 0xffffffff
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp + 0x14], esi
jmp 0x4209a8
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0xa8]
mov dword [eax + ecx*4], 0x9ff6
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], ebx
jl 0x420995
mov dword [ebp + 0x14], esi
jmp 0x4209c3
mov eax, dword [ebp + 0x14]
mov dword [ebp + eax*4 - 0xec], 6
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], ebx
jl 0x4209b2
inc dword [ebp - 0x6c]
lea ecx, [ebp - 0xa8]
call fcn.00413d23
mov dword [ebp - 4], 0x860b4ffb
xor eax, eax
mov dword [ebp - 0x28], 0x4f27d270
mov dword [ebp - 0x14], 0x4a41637c
mov dword [ebp + 0x14], 0xfffffff8
mov dword [ebp - 0x24], 0xc655ef1c
mov dword [ebp - 0x10], eax
jmp 0x420a0a
mov ecx, dword [ebp - 0x10]
mov dword [ebp + ecx*4 - 0x34], edi
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], ebx
jl 0x420a00
push 2
pop ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], eax
jl 0x420a77
mov dword [ebp - 0xc], 0x3b28
mov ecx, dword [ebp - 4]
mov ecx, dword [ebp + ecx*4 - 0x34]
mov ecx, dword [ebp - 4]
cmp dword [ebp + ecx*4 - 0x34], eax
jne 0x420a3f
mov ecx, dword [ebp - 4]
mov esi, eax
mov ecx, dword [ebp + ecx*4 - 0x34]
cmp dword [ebp - 0x28], eax
je 0x420a41
mov esi, edi
mov ecx, dword [ebp - 4]
mov ecx, dword [ebp + ecx*4 - 0x34]
neg ecx
mov dword [ebp - 0x14], ecx
je 0x420a58
mov ecx, dword [ebp - 4]
cmp dword [ebp + ecx*4 - 0x34], eax
jne 0x420a63
mov ecx, dword [ebp - 4]
mov edx, eax
cmp dword [ebp + ecx*4 - 0x34], eax
je 0x420a65
mov edx, edi
xor ecx, ecx
cmp esi, edx
setle cl
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x30], ecx
dec dword [ebp - 4]
jns 0x420a1a
mov ecx, dword [ebp - 0x34]
cmp dword [ebp - 0x14], eax
jne 0x420a98
cmp dword [ebp + 0x14], eax
je 0x420a87
mov ecx, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
xor edx, edx
cmp ecx, edi
setl dl
mov dword [ebp - 0x34], edx
mov edx, eax
jmp 0x420a9a
mov edx, edi
xor ecx, ecx
cmp edx, 0x6fbc
setg cl
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], eax
je 0x420b94
mov dword [ebp - 0xc], 0xfffffffe
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
jmp 0x420ad7
mov ecx, dword [ebp - 8]
mov dword [ebp + ecx*4 - 0x9c], 0xdd14a140
inc dword [ebp - 8]
cmp dword [ebp - 8], ebx
jl 0x420ac6
mov edx, dword [ebp - 0x10]
xor ebx, ebx
mov ecx, dword [ebp + 0x14]
cmp ecx, edx
mov ecx, dword [ebp - 4]
setge bl
cmp ebx, 0xaa7fcf62
sbb edx, edx
xor ebx, ebx
inc edx
cmp ecx, edx
mov ecx, dword [ebp - 0x10]
setge bl
xor edx, edx
cmp ebx, ecx
setle dl
sub edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
xor edx, edx
cmp dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x24]
setne dl
cmp edx, 0xfd6f6066
sbb edx, edx
xor ebx, ebx
inc edx
cmp edx, ecx
mov ecx, dword [ebp - 0xc]
setg bl
xor edx, edx
cmp ebx, 3
setne dl
add ecx, 0x4378215c
add edx, ecx
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov ecx, dword [ebp - 0x28]
setne bl
xor edx, edx
cmp ebx, ecx
setle dl
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0xc9e48991
jb 0x420b64
mov edx, edi
cmp dword [ebp + 0x14], eax
jne 0x420b66
mov edx, eax
mov ecx, dword [ebp - 0xc]
sub edx, ecx
sub edx, 0x1961266c
cmp dword [ebp - 0x14], edx
jg 0x420b7d
mov esi, edi
cmp dword [ebp - 0x10], eax
jne 0x420b7f
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
cmp esi, ecx
push 2
sete dl
mov dword [ebp - 0x9c], edx
pop ebx
jmp 0x420bc0
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], eax
jl 0x420bc0
mov byte [ebp + 0x17], al
cmp byte [ebp + 0x17], 0
je 0x420bbb
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_EndPage]
xor eax, eax
dec dword [ebp - 4]
jns 0x420b9c
mov dword [ebp - 0x24], 0x714a0256
mov dword [ebp + 0x14], 0x276b87d0
mov dword [ebp + 0x14], eax
jmp 0x420be1
mov ecx, dword [ebp + 0x14]
mov dword [ebp + ecx*4 - 0x5c], 0x951ad386
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], edi
jl 0x420bd3
mov dword [ebp + 0x14], eax
jmp 0x420bf8
mov ecx, dword [ebp + 0x14]
mov dword [ebp + ecx*4 - 0xb4], eax
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], 3
jl 0x420beb
dec dword [ebp - 0xb0]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0
je 0x420c2e
push 0x1e5c
push 0x174a
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x420c30
xor esi, esi
mov dword [ebp + 0x14], 0x90ac204e
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x14], 0x1ba028ea
push 4
call fcn.00413c51
mov dword [ebp - 8], edi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xc], esi
push ebx
call fcn.00413c51
xor eax, eax
mov dword [ebp + 0x14], eax
jmp 0x420c6d
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x68]
mov dword [ecx + edx*4], eax
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], 4
jl 0x420c61
mov dword [ebp + 0x14], eax
jmp 0x420c8b
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x94]
mov dword [ecx + edx*4], 0x458d81c9
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], ebx
jl 0x420c78
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x14], 0xffffffeb
jg 0x420d75
mov ebx, dword [ebp - 0x68]
push dword [ebp + 0x14]
movdqa xmm0, xmmword [0xaa5890]
lea ecx, [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x4c], eax
push ecx
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x48], eax
movdqu xmmword [ebp - 0xe0], xmm0
mov dword [ebp - 0x44], eax
call fcn.00415220
mov dword [ebp - 4], 0x438bea12
xor esi, esi
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 4], 3
cmp dword [ebp - 4], esi
jl 0x420d0c
cmp dword [ebp - 4], esi
jne 0x420d0c
dec dword [ebp - 4]
jns 0x420cef
cmp dword [ebp - 4], esi
jne 0x420d0c
imul eax, dword [ebp - 8], 0xe45b
dec dword [ebp - 8]
test eax, eax
je 0x420d0e
mov esi, edi
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov eax, dword [ebp - 4]
imul eax, dword [ebx + 0xc]
cmp eax, 0x32883e73
mov eax, dword [ebp - 0x18]
setg cl
sub ecx, eax
sub ecx, dword [ebp + 0x14]
sub ecx, dword [ebp + 0x14]
neg ecx
sbb ecx, ecx
xor eax, eax
inc ecx
cmp eax, ecx
mov eax, dword [ebp - 0x4c]
sbb ecx, ecx
xor edx, edx
neg ecx
cmp dword [eax], ecx
setle dl
cmp esi, edx
jge 0x420d50
mov eax, dword [ebp - 4]
mov dword [ebx + 8], eax
jmp 0x420d5d
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], 0x21576660
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x4c]
call fcn.00413d23
dec dword [ebp + 0x14]
cmp dword [ebp + 0x14], 0xffffffeb
push 0
pop eax
jle 0x420ca0
mov eax, dword [ebp + 0x14]
xor edx, edx
mov eax, dword [ebp - 0xc]
sub eax, 0x7d904387
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp - 0x68]
mov ecx, dword [esi]
lea eax, [ecx + 1]
cmp eax, ecx
setle dl
xor eax, eax
cmp edx, 0x2570
setne al
xor edx, edx
mov dword [esi], eax
mov dword [ebp + 0x14], 0x4e2bba6d
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
cmp eax, ecx
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x94]
setl dl
mov dword [eax], edx
call fcn.00413d23
lea ecx, [ebp - 0x68]
call fcn.00413d23
jmp 0x42111c
push 2
pop ebx
mov dword [ebp + 0x14], ebx
xor eax, eax
mov dword [ebp - 0x24], 0x3ea3a722
mov dword [ebp + 0x14], eax
jmp 0x420dfe
mov ecx, dword [ebp + 0x14]
mov dword [ebp + ecx*4 - 0x20], 0x3342eb9
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], ebx
jl 0x420df0
xor edi, edi
inc edi
mov dword [ebp + 0x14], edi
cmp dword [ebp + 0x14], eax
jl 0x420f0a
push dword [ebp + 0x14]
movdqa xmm0, xmmword [0xaa5910]
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xc], 0xfffffffa
push ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], eax
movdqu xmmword [ebp - 0xd0], xmm0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
call fcn.00415220
mov dword [ebp - 0xc], 0xd065835a
xor esi, esi
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 8], esi
jmp 0x420e6f
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x38], 0xc511ec1f
inc dword [ebp - 8]
cmp dword [ebp - 8], edi
jl 0x420e61
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov eax, dword [ebp + eax*4 - 0x20]
mov eax, dword [ebp + 0x14]
mov eax, dword [ebp + eax*4 - 0x20]
mov eax, dword [ebp + 0x14]
mov eax, dword [ebp + eax*4 - 0x20]
cmp eax, 0x70b1
setne cl
cmp ecx, 0xf928
jne 0x420ea2
mov eax, dword [ebp + 0x14]
mov eax, dword [ebp + eax*4 - 0x20]
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov eax, dword [ebp + 0x14]
mov eax, dword [ebp + eax*4 - 0x20]
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + eax*4 - 0x20]
mov eax, dword [ebp - 0x20]
cmp ecx, eax
sete dl
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x38], edi
mov dword [eax + 0xc], edi
mov eax, dword [ebp + 0x14]
mov eax, dword [ebp + eax*4 - 0x20]
inc eax
je 0x420ee0
cmp dword [ebp - 0x38], esi
je 0x420ee0
mov esi, edi
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x58]
mov dword [ebp + eax*4 - 0x20], esi
mov eax, dword [ebp + 0x14]
sub esi, eax
inc esi
mov dword [ebp - 0xc], esi
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
call fcn.00413d23
dec dword [ebp + 0x14]
push 0
pop eax
jns 0x420e12
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0x14], 0xfffffffd
mov dword [ebp - 0x10], 0xf6f97812
mov dword [ebp - 0xc], 0xea21
mov dword [ebp - 8], 0x3f5cfeb4
mov dword [ebp + 0x14], eax
jmp 0x420f3e
mov ecx, dword [ebp + 0x14]
mov dword [ebp + ecx*4 - 0x40], eax
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], ebx
jl 0x420f34
xor ebx, ebx
mov dword [ebp - 0x14], 0xfffffffe
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x91ba
mov ecx, dword [ebp - 0x10]
setg bl
xor edx, edx
cmp ebx, ecx
mov ecx, 0xf2f34e40
push 4
setge dl
cmp ecx, edx
pop ebx
sbb ecx, ecx
inc ecx
imul ecx, ecx, 0x8ffca
test ecx, ecx
je 0x420fa6
mov dword [ebp + 0x14], 0xfffffffb
xor edx, edx
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x40]
mov eax, dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, 2
mov eax, dword [ebp - 0xc]
setne dl
xor ecx, ecx
cmp edx, eax
setne cl
mov dword [ebp - 8], ecx
jmp 0x42109b
mov dword [ebp + 0x14], 0x3ede
mov dword [ebp - 4], 0x4d3380d4
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], eax
jne 0x420fd1
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
cmp dword [ebp - 0x40], eax
je 0x42106d
mov dword [ebp - 8], eax
jmp 0x420ff3
mov ecx, dword [ebp - 8]
mov dword [ebp + ecx*4 - 0x88], 0xfffffff6
inc dword [ebp - 8]
cmp dword [ebp - 8], ebx
jl 0x420fe2
cmp dword [ebp - 0x7c], eax
jne 0x421024
mov ecx, dword [ebp - 0x7c]
cmp ecx, dword [ebp - 0x40]
jle 0x42100c
mov ecx, eax
cmp dword [ebp - 4], eax
je 0x42100e
mov ecx, edi
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], eax
je 0x42101d
mov ecx, edi
cmp dword [ebp - 0x10], eax
jne 0x42101f
mov ecx, eax
dec ecx
mov ecx, eax
je 0x421026
mov ecx, edi
cmp ecx, 9
sbb ecx, ecx
neg ecx
sub ecx, 0xc87c
je 0x421038
mov ecx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x88]
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 4]
neg esi
sbb esi, esi
xor edx, edx
neg esi
neg esi
cmp esi, ecx
setne dl
sub edx, dword [ebp - 0x88]
jne 0x421068
cmp dword [ebp - 0x40], eax
jne 0x421068
mov edi, eax
mov dword [ebp - 4], edi
jmp 0x42109b
mov dword [ebp - 0xc], 0x266a
mov dword [ebp - 4], eax
jmp 0x421081
cmp dword [ebp - 0xc], eax
jne 0x421087
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x421079
mov dword [ebp + 0x14], eax
jmp 0x421095
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], 0x23
jg 0x42108c
push ebx
lea ecx, [ebp - 0xc0]
call fcn.00413c51
xor eax, eax
mov dword [ebp + 0x14], eax
jmp 0x4210bd
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc0]
mov dword [ecx + edx*4], ebx
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], ebx
jl 0x4210ae
mov byte [ebp + 0x17], al
cmp byte [ebp + 0x17], al
je 0x4210dc
push eax
push 0x1a3e
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov byte [ebp + 0x17], al
cmp byte [ebp + 0x17], 0
je 0x4210f0
push 0x681
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0xc0]
call fcn.00413d23
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ecx], eax
mov edx, dword [edx]
mov eax, dword [ecx]
xor ecx, ecx
cmp eax, edx
mov eax, dword [ebp - 0x28]
setge cl
mov dword [eax], ecx
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret