Function at 0x5f1380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a167b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x8a13b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xbc], ecx
xor eax, eax
cmp dword [ebp + 0xc], 0
setne al
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jne 0x5f13df
push 0x1e6
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxtoolbarscustomizedialog.cpp
call fcn.00443450
test eax, eax
je 0x5f13df
int3
cmp dword [ebp - 0x98], 0
jne 0x5f13ed
call fcn.0043cb80
xor edx, edx
jne 0x5f13b3
call fcn.004434e0
mov dword [ebp - 0x8c], eax
push 0xf1
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
jne 0x5f1450
mov edx, dword [ebp + 0xc]
push edx
push str.CMFCToolBarsCustomizeDialog::AddToolBar:_Cant_load_toolbar__x_n
push 0x1ed
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxtoolbarscustomizedialog.cpp
lea ecx, [ebp - 0xa8]
call fcn.00401640
push eax
call fcn.00401670
add esp, 0xc
xor eax, eax
jmp 0x5f15f8
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x5f14a1
mov edx, dword [ebp + 0xc]
push edx
push str.CMFCToolBarsCustomizeDialog::AddToolBar:_Cant_load_toolbar__x_n
push 0x1f4
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxtoolbarscustomizedialog.cpp
lea ecx, [ebp - 0xb0]
call fcn.00401640
push eax
call fcn.00401670
add esp, 0xc
xor eax, eax
jmp 0x5f15f8
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x5f14f8
mov ecx, dword [ebp + 0xc]
push ecx
push str.CMFCToolBarsCustomizeDialog::AddToolBar:_Cant_load_toolbar__x_n
push 0x1fb
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxtoolbarscustomizedialog.cpp
lea ecx, [ebp - 0xb8]
call fcn.00401640
push eax
call fcn.00401670
add esp, 0xc
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
xor eax, eax
jmp 0x5f15f8
mov eax, dword [ebp - 0x88]
movzx ecx, word [eax]
cmp ecx, 1
je 0x5f151a
push 0x200
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_afxtoolbarscustomizedialog.cpp
call fcn.00443450
test eax, eax
je 0x5f151a
int3
mov dword [ebp - 0x9c], 0
jmp 0x5f1535
mov eax, dword [ebp - 0x9c]
add eax, 1
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x88]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x9c], edx
jge 0x5f15da
mov ecx, dword [ebp - 0x88]
call fcn.005f1620
mov ecx, dword [ebp - 0x9c]
movzx edx, word [eax + ecx*2]
mov dword [ebp - 0xa0], edx
cmp dword [ebp - 0xa0], 0
jbe 0x5f15d5
cmp dword [ebp - 0xa0], 0xffffffff
je 0x5f15d5
push 0xffffffffffffffff
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x84]
call fcn.00648b40
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xc4]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xbc]
call fcn.005f0aa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00648dd0
jmp 0x5f1526
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.0041ec70
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0072b900
mov esp, ebp
pop ebp
ret 8