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

Disassembly:
sub esp, 0xc4
mov eax, dword [0x7e4788]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0xe0]
mov eax, ecx
shr eax, 0x10
movzx ebx, al
movzx eax, cl
and ecx, 0xff00ff00
shl eax, 0x10
or ebx, eax
mov edx, dword [esp + 0xd8]
or ebx, ecx
mov ecx, dword [esp + 0xe4]
mov eax, ecx
mov dword [esp + 0x18], ebx
shr eax, 0x10
movzx ebx, al
movzx eax, cl
and ecx, 0xff00ff00
shl eax, 0x10
or ebx, eax
mov ebp, dword [esp + 0xf0]
or ebx, ecx
mov ecx, dword [esp + 0xe8]
mov eax, ecx
mov esi, dword [esp + 0xec]
shr eax, 0x10
xor edi, edi
push 0x2000
mov dword [esp + 0x20], ebx
movzx ebx, al
push edi
movzx eax, cl
and ecx, 0xff00ff00
shl eax, 0x10
push edi
or ebx, eax
movzx eax, word [esp + 0xe8]
push edi
push eax
or ebx, ecx
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_LoadImageA]
mov ebx, eax
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x42fc88
lea eax, [esp + 0x50]
push eax
push 0x54
push ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp eax, 0x54
jne 0x42fc81
mov eax, dword [esp + 0x54]
test esi, esi
je 0x42fabf
mov dword [esi], eax
mov ecx, dword [esp + 0x58]
test ebp, ebp
je 0x42faca
mov dword [ebp], ecx
cmp word [esp + 0x76], 0x18
jne 0x42fc76
cmp dword [esp + 0x78], edi
jne 0x42fc76
shl eax, 2
imul eax, ecx
push eax
call fcn.00534e65
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x42fc81
mov eax, dword [esp + 0x58]
xor ebx, ebx
mov edi, dword [esp + 0x54]
test eax, eax
jle 0x42fba7
nop dword [eax + eax]
xor esi, esi
test edi, edi
jle 0x42fb9e
xor eax, eax
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x5c]
imul edx, ebx
add edx, eax
add edx, dword [esp + 0x64]
movzx eax, byte [edx + 2]
movzx ecx, byte [edx + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx]
shl eax, 8
or eax, ecx
cmp eax, dword [esp + 0x14]
jne 0x42fb59
mov eax, ebx
imul eax, edi
add eax, esi
mov dword [ebp + eax*4], 0
jmp 0x42fb86
cmp eax, dword [esp + 0x18]
jne 0x42fb76
mov ecx, dword [esp + 0x1c]
mov eax, ebx
imul eax, edi
or ecx, 0xff000000
add eax, esi
mov dword [ebp + eax*4], ecx
jmp 0x42fb86
mov ecx, ebx
or eax, 0xff000000
imul ecx, edi
add ecx, esi
mov dword [ebp + ecx*4], eax
mov eax, dword [esp + 0x10]
inc esi
mov edi, dword [esp + 0x54]
add eax, 3
mov dword [esp + 0x10], eax
cmp esi, edi
jl 0x42fb20
mov eax, dword [esp + 0x58]
inc ebx
cmp ebx, eax
jl 0x42fb10
xorps xmm0, xmm0
mov dword [esp + 0x30], eax
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x44], xmm0
mov dword [esp + 0x28], 0x28
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], 0x200001
movups xmm0, xmmword [esp + 0x28]
mov dword [esp + 0x38], 0
mov dword [esp + 0x4c], 0
movups xmmword [esp + 0xa4], xmm0
push 0
movups xmm0, xmmword [esp + 0x3c]
mov dword [esp + 0xd0], 0
movups xmmword [esp + 0xb8], xmm0
movq xmm0, qword [esp + 0x4c]
movq qword [esp + 0xc8], xmm0
call dword [sym.imp.USER32.dll_GetDC]
push 0
mov esi, eax
lea eax, [esp + 0x24]
push 0
push eax
push 0
lea eax, [esp + 0xb4]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, eax
test edi, edi
je 0x42fc56
mov ecx, dword [esp + 0x58]
imul ecx, dword [esp + 0x54]
shl ecx, 2
push ecx
push ebp
push dword [esp + 0x28]
call fcn.0052ae60
add esp, 0xc
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [esp + 0x24]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
call fcn.00534e4a
add esp, 4
mov eax, edi
jmp 0x42fc8a
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, edi
jmp 0x42fc8a
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00529c8c
add esp, 0xc4
ret