Function at 0x42fb80
Capabilities:
Extract resource via kernel32 functions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5851d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
cmp edi, esi
mov ebx, edx
mov dword [esp + 0x20], ebx
jl 0x42fc90
push 0x431
mov ecx, ebx
call fcn.00537b72
push 2
mov dword [esp + 0x1c], eax
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [ebx + 0xa8]
call fcn.0053d0c2
mov dword [esp + 0x50], esi
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov ecx, 0x59dd80
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42fc1e
cmp dx, si
je 0x42fc1a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42fc1e
add eax, 4
add ecx, 4
cmp dx, si
jne 0x42fbf8
xor eax, eax
jmp 0x42fc23
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x42fca3
push 2
push esi
call fcn.004ec6f0
mov ebx, eax
add esp, 8
cmp ebx, esi
je 0x42fc57
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
mov edx, ebx
call fcn.004143b0
mov edi, eax
call fcn.004ecb90
cmp edi, esi
jne 0x42fd09
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x20]
push 1
push esi
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42fc90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x595d54
push 0xcf
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x42fc57
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 3
push eax
mov dword [esp + 0x1c], eax
call fcn.004ec6f0
mov ebx, eax
add esp, 8
cmp ebx, esi
je 0x42fc57
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
mov edx, ebx
call fcn.004143b0
cmp eax, esi
jne 0x42fd04
mov dword [esp + 0x10], esi
call fcn.004ecb90
mov edi, dword [esp + 0x10]
cmp edi, esi
je 0x42fc57
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 0x78]
add ebx, 0x74
cmp eax, esi
je 0x42fd37
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
push edi
mov edi, dword [esp + 0x18]
push ebx
call fcn.004ef390
test eax, eax
je 0x42fc57
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00537071
lea edx, [esp + 0x24]
mov edi, eax
mov eax, dword [esi + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, edi
mov ecx, ebx
call fcn.004ef780
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
push edi
lea eax, [esp + 0x3c]
mov ecx, ebx
call fcn.004ef430
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esp + 0x10]
push edx
call fcn.005308f6
add esp, 4
jmp 0x42fc68