Function at 0x494660
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x571b7c
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x134]
mov dword fs:[0], eax
mov eax, dword [esp + 0x148]
mov edi, dword [esp + 0x144]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [eax]
sub eax, 0x10
push eax
mov esi, ecx
mov dword [esp + 0x30], edi
call fcn.004016a0
add eax, 0x10
mov dword [esp + 0x20], eax
push 0xff
lea eax, [esp + 0x39]
push ebx
push eax
mov dword [esp + 0x14c], ebx
mov byte [esp + 0x40], bl
call fcn.00530d30
mov eax, dword [edi]
add esp, 0x10
push eax
push 0x100
lea ecx, [esp + 0x38]
push ecx
push 0x57e9e8
push str.SimpleBK
push str.CPersonality
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x30], bl
je 0x49479f
push 1
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00494580
mov edi, eax
push 0x58e1b8
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x148], 1
mov dword [esp + 0x24], 1
call fcn.00402100
push edi
push eax
lea eax, [esp + 0x34]
mov ebx, 3
push eax
mov dword [esp + 0x154], 2
mov dword [esp + 0x30], ebx
call fcn.004065f0
add esp, 0x18
mov ebp, dword [eax]
mov dword [esp + 0x13c], ebx
lea edi, [esi + 0x2c0]
mov ebx, 7
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.0051816f
push 0
push ebp
mov ecx, edi
call fcn.004a3260
test eax, eax
mov byte [esp + 0x17], 0
jne 0x4947a4
mov byte [esp + 0x17], 1
test bl, 4
mov dword [esp + 0x13c], 2
je 0x4947db
mov eax, dword [esp + 0x20]
and ebx, 0xfffffffb
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4947db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 2
mov dword [esp + 0x13c], 1
je 0x494812
mov eax, dword [esp + 0x28]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494812
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 1
mov dword [esp + 0x13c], 0
je 0x494845
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494845
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
je 0x49487e
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x13c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494877
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x494c8e
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
push eax
push 0x100
lea edx, [esp + 0x38]
push edx
push 0x57e9e8
push str.FullBK
push str.CPersonality
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x30], 0
je 0x49493c
push 1
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00494580
mov edi, eax
push 0x58e1b8
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
or ebx, 8
push eax
mov byte [esp + 0x148], 4
mov dword [esp + 0x24], ebx
call fcn.00402100
push edi
push eax
lea ecx, [esp + 0x38]
or ebx, 0x10
push ecx
mov dword [esp + 0x154], 5
mov dword [esp + 0x30], ebx
call fcn.004065f0
add esp, 0x18
mov ebp, dword [eax]
lea edi, [esi + 0x2c8]
or ebx, 0x20
mov ecx, edi
mov dword [esp + 0x13c], 6
mov dword [esp + 0x18], ebx
call fcn.0051816f
push 0
push ebp
mov ecx, edi
call fcn.004a3260
test eax, eax
mov byte [esp + 0x17], 0
jne 0x494941
mov byte [esp + 0x17], 1
test bl, 0x20
mov dword [esp + 0x13c], 5
je 0x494978
mov eax, dword [esp + 0x24]
and ebx, 0xffffffdf
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x494978
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 0x10
mov dword [esp + 0x13c], 4
je 0x4949af
mov eax, dword [esp + 0x28]
and ebx, 0xffffffef
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4949af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 8
mov dword [esp + 0x13c], 0
je 0x4949e2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
and ebx, 0xfffffff7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4949e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
jne 0x49484c
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
push eax
push 0x100
lea edx, [esp + 0x38]
push edx
push 0x57e9e8
push str.dockdevice
push str.CPersonality
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x30], 0
je 0x494ab1
push 1
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00494580
mov edi, eax
push 0x58e1b8
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
or ebx, 0x40
push eax
mov byte [esp + 0x148], 7
mov dword [esp + 0x24], ebx
call fcn.00402100
push edi
push eax
lea ecx, [esp + 0x38]
or ebx, 0x80
push ecx
mov dword [esp + 0x154], 8
mov dword [esp + 0x30], ebx
call fcn.004065f0
add esp, 0x18
mov ebp, dword [eax]
lea edi, [esi + 0x2d8]
or ebx, 0x100
mov ecx, edi
mov dword [esp + 0x13c], 9
mov dword [esp + 0x18], ebx
call fcn.0051816f
push 0
push ebp
mov ecx, edi
call fcn.004a3260
test eax, eax
mov byte [esp + 0x17], 0
jne 0x494ab6
mov byte [esp + 0x17], 1
test ebx, 0x100
mov dword [esp + 0x13c], 8
je 0x494af3
mov eax, dword [esp + 0x24]
and ebx, 0xfffffeff
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x494af3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
mov dword [esp + 0x13c], 7
jns 0x494b2c
mov eax, dword [esp + 0x28]
and ebx, 0xffffff7f
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494b2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, 0x40
mov dword [esp + 0x13c], 0
je 0x494b5f
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
and ebx, 0xffffffbf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494b5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
jne 0x49484c
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
push eax
push 0x100
lea edx, [esp + 0x38]
push edx
push 0x57e9e8
push str.dockptz
push str.CPersonality
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x30], 0
je 0x494c31
push 1
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00494580
mov edi, eax
push 0x58e1b8
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
or ebx, 0x200
push eax
mov byte [esp + 0x148], 0xa
mov dword [esp + 0x24], ebx
call fcn.00402100
push edi
push eax
lea ecx, [esp + 0x38]
or ebx, 0x400
push ecx
mov dword [esp + 0x154], 0xb
mov dword [esp + 0x30], ebx
call fcn.004065f0
add esp, 0x18
mov edi, dword [eax]
add esi, 0x2e0
or ebx, 0x800
mov ecx, esi
mov dword [esp + 0x13c], 0xc
mov dword [esp + 0x18], ebx
call fcn.0051816f
push 0
push edi
mov ecx, esi
call fcn.004a3260
test eax, eax
mov byte [esp + 0x17], 0
jne 0x494c36
mov byte [esp + 0x17], 1
test ebx, 0x800
je 0x494c4d
lea ecx, [esp + 0x24]
and ebx, 0xfffff7ff
call fcn.004015d0
test ebx, 0x400
je 0x494c64
lea ecx, [esp + 0x28]
and ebx, 0xfffffbff
call fcn.004015d0
test ebx, 0x200
je 0x494c75
lea ecx, [esp + 0x20]
call fcn.004015d0
lea ecx, [esp + 0x1c]
call fcn.004015d0
cmp byte [esp + 0x17], 0
jne 0x494877
mov eax, 1
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0053042b
add esp, 0x12c
ret 8