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

Disassembly:
push 0xffffffffffffffff
push 0x6e9989
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x178]
mov ecx, esi
call fcn.004be5f0
mov ecx, dword [ebp + 4]
cmp dword [ecx + 0xc], eax
jne 0x4c4e10
mov ecx, esi
call fcn.004bf0f0
mov ecx, dword [ebp + 4]
cmp dword [ecx + 8], eax
jne 0x4c4e10
push 0
push 0
push 1
lea eax, [esp + 0x30]
mov ecx, ebp
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004bdd90
test al, al
jne 0x4c4d51
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x4c50a3
push str.No_unused_colour_in_image_being_masked.
lea ecx, [esp + 0x128]
call fcn.00418040
xor eax, eax
mov dword [esp + 0x170], 7
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
mov word [esp + 0x74], ax
mov dword [esp + 0x8c], eax
mov byte [esp + 0x170], 8
call fcn.005eae80
test eax, eax
je 0x4c4b7e
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x128]
push ecx
mov ecx, eax
call fcn.005ecae0
mov esi, eax
test esi, esi
jne 0x4c4b90
lea eax, [esp + 0x124]
push eax
call fcn.005ed1e0
add esp, 4
mov esi, eax
call fcn.005c92f0
mov dword [esp + 0x2c], eax
mov byte [esp + 0x170], 9
call fcn.005c92f0
mov dword [esp + 0x30], eax
mov byte [esp + 0x170], 0xa
call fcn.005c92f0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0
push 0
mov byte [esp + 0x174], 0xb
mov dword [esp + 0xe0], 1
mov dword [esp + 0xe8], str....._srccommonimage.cpp
mov dword [esp + 0xf0], str.wxImage::SetMaskFromImage
mov dword [esp + 0xec], 0x876
mov dword [esp + 0xf4], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
add esp, 4
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0xfc], eax
xor eax, eax
mov dword [esp + 0x100], 0
mov dword [esp + 0x118], 7
mov dword [esp + 0x114], 0
mov word [esp + 0x104], ax
mov dword [esp + 0x11c], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x170], 0xc
call fcn.005e6500
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.00439e70
push dword [esp + 0x124]
mov esi, dword [sym.imp.MSVCR120.dll_free]
mov byte [esp + 0x17c], 0xb
call esi
add esp, 0xc
cmp dword [esp + 0x118], 8
jb 0x4c4caf
push dword [esp + 0x104]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x118], 7
lea ecx, [esp + 0xe4]
mov dword [esp + 0x114], 0
mov word [esp + 0x104], ax
call fcn.00439c40
lea ecx, [esp + 0x2c]
mov byte [esp + 0x170], 8
call fcn.00420020
push dword [esp + 0x8c]
call esi
add esp, 4
cmp dword [esp + 0x88], 8
jb 0x4c4d0e
push dword [esp + 0x74]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0x13c]
xor eax, eax
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], 0
mov word [esp + 0x78], ax
call esi
add esp, 4
cmp dword [esp + 0x138], 8
jb 0x4c50a3
push dword [esp + 0x124]
jmp 0x4c509b
mov ecx, ebp
call fcn.005bd7a0
mov ecx, ebp
call fcn.004be4e0
mov ecx, esi
mov edi, eax
call fcn.004be4e0
mov ecx, ebp
mov esi, eax
call fcn.004bf0f0
mov ecx, ebp
mov dword [esp + 0x28], eax
call fcn.004be5f0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x4c4def
mov ebp, dword [esp + 0x28]
test ebp, ebp
jle 0x4c4de4
mov eax, ebp
lea ebx, [ebx]
mov bl, byte [esp + 0x17c]
cmp byte [esi], bl
mov ebx, dword [esp + 0x24]
jne 0x4c4dd7
mov cl, byte [esp + 0x180]
cmp byte [esi + 1], cl
mov ecx, dword [esp + 0x20]
jne 0x4c4dd7
mov dl, byte [esp + 0x184]
cmp byte [esi + 2], dl
mov edx, dword [esp + 0x18]
jne 0x4c4dd7
mov byte [edi], dl
mov byte [edi + 1], cl
mov byte [edi + 2], bl
add edi, 3
add esi, 3
dec eax
jne 0x4c4da0
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x4c4d94
mov ebp, dword [esp + 0x14]
push ebx
push ecx
push edx
mov ecx, ebp
call fcn.004c49d0
push 1
mov ecx, ebp
call fcn.004c4960
mov al, 1
jmp 0x4c50a5
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x4c50a3
push str.Image_and_mask_have_different_sizes.
lea ecx, [esp + 0x148]
call fcn.00418040
xor eax, eax
mov dword [esp + 0x170], 0
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
mov dword [esp + 0x6c], eax
mov byte [esp + 0x170], 1
call fcn.005eae80
test eax, eax
je 0x4c4e93
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x148]
push ecx
mov ecx, eax
call fcn.005ecae0
mov esi, eax
test esi, esi
jne 0x4c4ea5
lea eax, [esp + 0x144]
push eax
call fcn.005ed1e0
add esp, 4
mov esi, eax
call fcn.005c92f0
mov dword [esp + 0x40], eax
mov byte [esp + 0x170], 2
call fcn.005c92f0
mov dword [esp + 0x44], eax
mov byte [esp + 0x170], 3
call fcn.005c92f0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 0
push 0
mov byte [esp + 0x174], 4
mov dword [esp + 0x98], 1
mov dword [esp + 0xa0], str....._srccommonimage.cpp
mov dword [esp + 0xa8], str.wxImage::SetMaskFromImage
mov dword [esp + 0xa4], 0x86e
mov dword [esp + 0xac], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
add esp, 4
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0xb4], eax
xor eax, eax
mov dword [esp + 0xb8], 0
mov dword [esp + 0xd0], 7
mov dword [esp + 0xcc], 0
mov word [esp + 0xbc], ax
mov dword [esp + 0xd4], eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x170], 5
call fcn.005e6500
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00439e70
push dword [esp + 0xdc]
mov edi, dword [sym.imp.MSVCR120.dll_free]
call edi
add esp, 0xc
cmp dword [esp + 0xd0], 8
jb 0x4c4fbc
push dword [esp + 0xbc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0xb8]
xor eax, eax
mov dword [esp + 0xd0], 7
mov dword [esp + 0xcc], 0
mov word [esp + 0xbc], ax
mov dword [esp + 0x14], esi
test esi, esi
je 0x4c503a
push 0x4294d0
push dword [esi + 0x10]
mov byte [esp + 0x178], 6
push dword [esi + 0x14]
call fcn.005f0870
push dword [esi + 0x10]
mov dword [esi + 0x18], 0
call edi
push 0x439bf0
push dword [esi]
mov byte [esp + 0x188], 4
push dword [esi + 4]
call fcn.005f0870
push dword [esi]
mov dword [esi + 8], 0
call edi
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 0x24
lea ecx, [esp + 0x40]
mov byte [esp + 0x170], 1
call fcn.00420020
push dword [esp + 0x6c]
call edi
add esp, 4
cmp dword [esp + 0x68], 8
jb 0x4c5067
push dword [esp + 0x54]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0x15c]
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
call edi
add esp, 4
cmp dword [esp + 0x158], 8
jb 0x4c50a3
push dword [esp + 0x144]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x160
ret 0x10