Function at 0x407660
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x579660
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ecfcc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov eax, dword [0x5ee8b4]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x3c], edi
call fcn.00402a50
add eax, 0x10
mov dword [esp + 0x18], eax
push str.Bar_State_Bar0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x48], 1
mov dword [esp + 0x34], OleUIBusyA
call fcn.00403710
mov eax, dword [eax]
add esp, 0x10
push eax
lea ecx, [esp + 0x28]
call fcn.004011b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407700
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Bar_State_Bar1
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
call fcn.004011b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407743
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Bar_State_Bar2
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
call fcn.004011b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407786
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Bar_State_Bar3
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
call fcn.004011b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4077c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Bar_State_Bar4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
call fcn.004011b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40780c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Bar_State_Bar5
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
call fcn.004011b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40784f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Bar_State_Bar6
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
call fcn.004011b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407892
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Bar_State_SCBar_105
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
call fcn.004011b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4078d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Bar_State_SCBar_106
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
call fcn.004011b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407918
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Bar_State_Summary
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
call fcn.004011b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40795b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Bar_State_Bar0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00403710
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push 0x2001f
push edi
push edi
push edi
push eax
push SysReAllocString
mov dword [esp + 0x3c], edi
call esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
jne 0x4079be
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp ecx, edi
je 0x4079b0
push ecx
call ebp
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edi
cmp eax, edi
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4079e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x407ada
push str.BarID
lea ecx, [esp + 0x28]
push 0xe800
push ecx
call fcn.0042e4d0
push str.Docking
lea edx, [esp + 0x34]
push 1
push edx
call fcn.0042e4d0
push str.MRUDockBottomPos
lea eax, [esp + 0x40]
push 0x19
push eax
call fcn.0042e4d0
push str.MRUDockID
lea ecx, [esp + 0x4c]
push edi
push ecx
call fcn.0042e4d0
push str.MRUDockLeftPos
lea edx, [esp + 0x58]
push edi
push edx
call fcn.0042e4d0
push str.MRUDockRightPos
lea eax, [esp + 0x64]
push 0x2ae
push eax
call fcn.0042e4d0
add esp, 0x48
push str.MRUDockTopPos
lea ecx, [esp + 0x28]
push 0xfffffffffffffffe
push ecx
call fcn.0042e4d0
push str.MRUFloatStyle
lea edx, [esp + 0x34]
push 0x2004
push edx
call fcn.0042e4d0
push str.MRUFloatXPos
lea eax, [esp + 0x40]
push SysReAllocString
push eax
call fcn.0042e4d0
push str.MRUFloatYPos
lea ecx, [esp + 0x4c]
push 0xcdcdcdcd
push ecx
call fcn.0042e4d0
push str.XPos
lea edx, [esp + 0x58]
push edi
push edx
call fcn.0042e4d0
push str.YPos
lea eax, [esp + 0x64]
push 0xfffffffffffffffe
push eax
call fcn.0042e4d0
mov eax, dword [esp + 0x6c]
add esp, 0x48
cmp eax, edi
je 0x407ad6
push eax
call ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
push str.Bar_State_Bar1
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00403710
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push 0x2001f
push edi
push edi
push edi
push eax
push SysReAllocString
mov dword [esp + 0x3c], edi
call esi
cmp eax, edi
jne 0x407b31
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp ecx, edi
je 0x407b23
push ecx
call ebp
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edi
cmp eax, edi
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407b54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x407b82
push str.BarID
lea ecx, [esp + 0x28]
push 0xe801
push ecx
call fcn.0042e4d0
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, edi
je 0x407b7e
push eax
call ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407ba7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x407bb2
push eax
call ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret