Function at 0x41282f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c0
mov eax, dword [0x5b41f4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x684], 0
and dword [ebp - 0x68c], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x42800648
mov dword [ebp - 0x694], edi
mov dword [ebp - 0x690], ebx
call fcn.0040c9df
cmp dword [0x5bd138], 0
mov dword [ebp - 0x69c], eax
mov eax, 0x52800648
cmovne esi, eax
mov dword [ebp - 0x698], esi
xor esi, esi
push esi
push ebx
push 0xfb01
push edi
push esi
push esi
push esi
push esi
push 0x54001d68
push esi
push str.ToolbarWindow32
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push 0x14
push 0x41e
push eax
mov dword [0x5c0b80], eax
call edi
push 0x5bd680
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x688], 1
test eax, eax
je 0x41293d
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
push 0x104
push ebx
push 0x5bd680
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x412911
push 0x5bd680
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x2010
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push ebx
call esi
mov ebx, eax
test ebx, ebx
je 0x412937
mov dword [ebp - 0x68c], 1
xor esi, esi
jmp 0x412965
mov ebx, dword [ebp - 0x690]
push 0x2000
xor eax, eax
push eax
push eax
push eax
push 0x64
push ebx
call esi
push 0x2000
xor esi, esi
mov ebx, eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 0x684], eax
lea eax, [ebp - 0x6b4]
push eax
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, 0x501
cmp word [0x5c0b90], ax
jae 0x412994
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call fcn.0040ca4e
pop ecx
pop ecx
mov eax, dword [ebp - 0x6b0]
push esi
push esi
push 0x21
push dword [ebp - 0x6ac]
cdq
push 0x19
pop ecx
idiv ecx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 0xff000000
mov esi, eax
push ebx
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
xor esi, esi
push esi
push 0x430
push dword [0x5c0b80]
call edi
mov ebx, 0x5bd460
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x412a84
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x412a14
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x2010
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
test ebx, ebx
je 0x412a84
lea eax, [ebp - 0x6b4]
push eax
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0x6b0]
push esi
push esi
push 0x21
push dword [ebp - 0x6ac]
cdq
push 0x19
pop ecx
idiv ecx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 0xff000000
mov esi, eax
push ebx
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
xor esi, esi
push esi
push 0x434
push dword [0x5c0b80]
call edi
mov ebx, 0x5bd240
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x412b24
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x412ac0
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x2010
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
test ebx, ebx
je 0x412b24
lea eax, [ebp - 0x6b4]
push eax
push 0x18
push ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0x6b0]
push esi
push esi
push 0x21
push dword [ebp - 0x6ac]
cdq
push 0x19
pop ecx
idiv ecx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 0xff000000
mov esi, eax
push ebx
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x412bca
cmp dword [ebp - 0x68c], 0
jne 0x412bda
mov eax, dword [0x5b9eb0]
cmp eax, 1
jne 0x412b57
push 0x60
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [ebp - 0x684]
push eax
push ebx
call fcn.0040cb3e
add esp, 0xc
jmp 0x412b7b
cmp eax, 2
je 0x412b6e
mov ecx, 0x501
cmp word [0x5c0b90], cx
jae 0x412bda
test eax, eax
jne 0x412bda
mov ebx, dword [ebp - 0x684]
push ebx
call fcn.0040cb41
pop ecx
test eax, eax
je 0x412bda
mov eax, 0x501
cmp word [0x5c0b90], ax
jae 0x412b9e
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call fcn.0040ca4e
pop ecx
pop ecx
mov eax, dword [ebp - 0x6b0]
push esi
push esi
push 0x21
push dword [ebp - 0x6ac]
cdq
push 0x19
pop ecx
idiv ecx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 0xff000000
mov esi, eax
push ebx
push esi
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push esi
push 0
push 0x436
push dword [0x5c0b80]
call edi
mov eax, dword [ebp - 0x684]
test eax, eax
je 0x412beb
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalSize]
push 0x5b7cb8
shr eax, 1
push eax
push ebx
push str.Toolbar_Labels
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor esi, esi
cmp byte [esi + 0x561d09], 1
je 0x412c8f
push dword [ebp - 0x688]
lea eax, [ebp - 0x40c]
push 0x5620f8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
inc dword [ebp - 0x688]
lea eax, [ebp - 0x60c]
push 0x100
push eax
push 0x5b9f0c
lea eax, [ebp - 0x40c]
push eax
push ebx
call fcn.0040c7d3
add esp, 0x20
test eax, eax
je 0x412c88
lea eax, [ebp - 0x60c]
push eax
push 0
push 0x44d
push dword [0x5c0b80]
call edi
or byte [esi + 0x561d09], 0x50
mov dword [esi + 0x561d10], eax
jmp 0x412c8f
and byte [esi + 0x561d09], 0xaf
add esi, 0x14
cmp esi, 0x280
jb 0x412c17
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
push ebx
push ebx
push 0x455
push dword [0x5c0b80]
call edi
or eax, 8
push eax
push ebx
push 0x454
push dword [0x5c0b80]
call edi
mov esi, 0x561d00
push esi
push 0x18
push 0x444
push dword [0x5c0b80]
call edi
push 0x20
push esi
push 0x5bd8a0
push 0x9efc
push dword [0x5c0b80]
call fcn.0040d1c5
add esp, 0x14
test eax, eax
jne 0x412d0c
push esi
push 0x18
push 0x444
push dword [0x5c0b80]
call edi
lea eax, [ebp - 0x61c]
push eax
push ebx
push 0x41d
push dword [0x5c0b80]
call edi
cmp dword [0x5bd134], ebx
mov ecx, 0x54000000
mov esi, dword [ebp - 0x694]
mov eax, 0x44000000
push 0xfb00
push esi
cmovne eax, ecx
push ebx
push eax
call dword [sym.imp.COMCTL32.dll_CreateStatusWindowW]
push ebx
push dword [ebp - 0x690]
mov dword [0x5c0b84], eax
push 0xfb02
push esi
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x698]
push ebx
push str.ReBarWindow32
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea ecx, [ebp - 0x6c0]
mov dword [0x5c0b7c], eax
push ecx
push ebx
push 0x404
push eax
mov dword [ebp - 0x6c0], 0xc
mov dword [ebp - 0x6bc], ebx
mov dword [ebp - 0x6b8], ebx
call edi
mov esi, dword [ebp - 0x69c]
test esi, esi
push 2
pop ebx
push 6
pop ecx
mov eax, ebx
mov dword [ebp - 0x680], 0x64
cmovne eax, ecx
mov dword [ebp - 0x67c], 0x31
mov dword [ebp - 0x678], eax
mov eax, dword [0x5c0b80]
and dword [ebp - 0x650], 0
and dword [ebp - 0x654], 0
mov dword [ebp - 0x660], eax
mov eax, dword [ebp - 0x614]
sub eax, dword [ebp - 0x61c]
shl eax, 5
mov dword [ebp - 0x65c], eax
mov eax, dword [ebp - 0x618]
add eax, dword [ebp - 0x610]
mov dword [ebp - 0x658], eax
lea eax, [ebp - 0x680]
push eax
push 0xffffffffffffffff
push 0x40a
push dword [0x5c0b7c]
mov dword [ebp - 0x66c], str.Toolbar
call edi
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [0x5c0b7c]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0x61c]
push eax
push dword [0x5c0b7c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x610]
sub eax, dword [ebp - 0x618]
mov ecx, dword [ebp - 4]
mov dword [0x5bd0fc], eax
xor eax, eax
test esi, esi
pop edi
cmovne ebx, eax
xor ecx, ebp
pop esi
mov dword [0x5bd0f8], ebx
pop ebx
call fcn.004afcaa
leave
ret