Function at 0x541950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6f6bc9
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0xb4], eax
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x54], esi
call fcn.004dc4e0
cmp eax, 0x1d7
jl 0x541acf
mov esi, dword [esi + 0x198]
xor edx, edx
xor edi, edi
mov dword [esp + 0x64], edx
test esi, esi
je 0x541acf
mov ecx, dword [esi + 8]
mov al, byte [ecx + 0x9c]
test al, al
jne 0x541a12
cmp dword [ecx + 0xc], 2
jne 0x541a11
mov al, byte [ecx + 0x1c]
test al, al
je 0x541a11
mov eax, dword [esp + 0x54]
push 0xfffffffffffffffd
push edi
push dword [eax + 0x138]
lea eax, [esp + 0x18]
push eax
call fcn.00541dd0
add esp, 0x10
movdqu xmm0, xmmword [eax]
lea eax, [esp + 0xb0]
push eax
movdqu xmmword [esp + 0xb4], xmm0
call dword [sym.imp.USER32.dll_IsRectEmpty]
mov edx, dword [esp + 0x64]
test eax, eax
jne 0x541a11
inc edx
mov dword [esp + 0x64], edx
inc edi
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x5419b5
test edx, edx
je 0x541acf
mov esi, dword [esp + 0x54]
mov ecx, esi
call fcn.0053c560
test al, al
mov eax, dword [esi]
je 0x541a3d
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x5c]
jmp 0x541a46
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x64]
push ecx
mov ecx, esi
call dword [eax + 0x294]
mov edi, dword [esp + 0x60]
sub edi, dword [esi + 0x1d0]
mov ecx, dword [esp + 0x64]
test edi, edi
jle 0x541a6b
xor edx, edx
mov eax, edi
div ecx
mov edx, eax
jmp 0x541a70
mov edx, 1
mov dword [esp + 0x60], edx
test edi, edi
jle 0x541a86
lea eax, [ecx - 1]
imul eax, edx
sub edi, eax
mov dword [esp + 0x50], edi
jmp 0x541a8e
mov dword [esp + 0x50], 1
mov esi, dword [esi + 0x198]
xor edx, edx
xor edi, edi
mov dword [esp + 0x5c], edx
test esi, esi
je 0x541acf
mov ecx, dword [esi + 8]
mov dword [esp + 0x58], ecx
mov al, byte [ecx + 0x9c]
test al, al
jne 0x541ac8
mov eax, dword [ecx + 0xc]
cmp eax, 3
jne 0x541af5
test edx, edx
je 0x541af5
push edx
call fcn.0053f5c0
mov edx, dword [esp + 0x5c]
inc edi
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x541aa0
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.006d1ba7
add esp, 0xc4
ret
cmp eax, 2
jne 0x541ac7
mov al, byte [ecx + 0x1c]
test al, al
je 0x541ac7
mov eax, dword [esp + 0x54]
push 0xfffffffffffffffd
push edi
push dword [eax + 0x138]
lea eax, [esp + 0x18]
push eax
call fcn.00541dd0
add esp, 0x10
dec dword [esp + 0x64]
movdqu xmm0, xmmword [eax]
mov eax, dword [esp + 0x50]
movzx ecx, ax
mov eax, dword [esp + 0x60]
movzx eax, ax
cmovne ecx, eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
movdqu xmmword [esp + 0xb4], xmm0
xorps xmm0, xmm0
movdqu xmmword [esp + 0x20], xmm0
mov dword [esp + 0x20], 0x20
movdqu xmmword [esp + 0x30], xmm0
mov dword [esp + 0x24], 0x40
mov word [esp + 0x32], cx
push dword [eax + 0x10]
mov eax, dword [esp + 0x5c]
push 0x440
push dword [eax + 0x138]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x541d34
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 6
call fcn.00439d10
add esp, 0x24
test al, al
je 0x541ac3
call fcn.005c92f0
mov dword [esp + 0x3c], eax
mov dword [esp + 0xcc], 0
call fcn.005c92f0
mov dword [esp + 0x40], eax
push 0xffffffffffffffff
lea eax, [esp + 0x48]
mov byte [esp + 0xd0], 1
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.00439000
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
push 0
mov dword [esp + 0xdc], 2
mov dword [esp + 0x78], 6
mov dword [esp + 0x80], str....._srcmsw_toolbar.cpp
mov dword [esp + 0x88], str.wxToolBar::UpdateStretchableSpacersSize
mov dword [esp + 0x84], 0x535
mov dword [esp + 0x8c], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x98], eax
xor eax, eax
mov dword [esp + 0x9c], 0
mov dword [esp + 0xb4], 7
mov dword [esp + 0xb0], 0
mov word [esp + 0xa0], ax
mov dword [esp + 0xb8], eax
mov byte [esp + 0xdc], 3
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.005e5210
add esp, 0x14
push eax
call sub.KERNEL32.dll_GetLastError
push eax
push str.TB_SETBUTTONINFO
push 0x535
push str....._srcmsw_toolbar.cpp
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x80]
call fcn.00479740
push dword [esp + 0xa8]
mov byte [esp + 0xd0], 2
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [esp + 0xa4], 8
jb 0x541cf2
push dword [esp + 0x90]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0xa4], 7
lea ecx, [esp + 0x70]
mov dword [esp + 0xa0], 0
mov word [esp + 0x90], ax
call fcn.00439c40
lea ecx, [esp + 0x3c]
mov dword [esp + 0xcc], 0xffffffff
call fcn.00420020
jmp 0x541ac3
movzx eax, word [esp + 0x2e]
sub eax, dword [esp + 0xb8]
mov edx, dword [esp + 0x5c]
add eax, dword [esp + 0xb0]
add edx, eax
mov dword [esp + 0x5c], edx
jmp 0x541ac7