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

Disassembly:
sub esp, 0x60
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
xor eax, eax
push esi
mov dword [esp + 0x40], eax
push edi
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x50], eax
push 0x18
mov dword [esp + 0x58], eax
push ebp
mov dword [esp + 0x4c], 0
mov dword [esp + 0x60], eax
call dword [sym.imp.gdi32.dll_GetObjectW]
push 0x34
call fcn.0047c609
mov ebx, eax
add esp, 4
xor eax, eax
push eax
push eax
push eax
mov ecx, 0xd
mov edi, ebx
rep stosd dword es:[edi], eax
push 0x491804
mov dword [esp + 0x34], ebx
mov dword [ebx], 0x28
call dword [sym.imp.gdi32.dll_CreateICW]
mov edx, dword [esp + 0x48]
push 0
push ebx
push 0
push edx
push 0
mov esi, eax
push ebp
push esi
mov dword [esp + 0x48], esi
call dword [sym.imp.gdi32.dll_GetDIBits]
mov eax, dword [ebx + 0x14]
add eax, 4
push eax
call fcn.0047c609
add esp, 4
cmp word [ebx + 0xe], 8
mov edi, eax
mov dword [esp + 0x30], edi
jne 0x4109fa
push 0x428
call fcn.0047c609
mov edi, eax
mov ecx, 0xb
mov esi, ebx
push ebx
mov dword [esp + 0x2c], eax
rep movsd dword es:[edi], dword [esi]
call fcn.0047c604
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
add esp, 8
mov ecx, dword [ebx + 8]
push 0
push ebx
push edi
push ecx
push 0
push ebp
push esi
call dword [sym.imp.gdi32.dll_GetDIBits]
push esi
call dword [sym.imp.gdi32.dll_DeleteDC]
lea edx, [esp + 0x58]
push edx
push 0x18
push ebp
call dword [sym.imp.gdi32.dll_GetObjectW]
mov cx, word [ebx + 0xe]
cmp cx, 0x10
jne 0x410a5c
mov al, byte [esp + 0x78]
mov dl, byte [esp + 0x79]
and dl, 0x3f
and al, 0x1f
mov byte [esp + 0x79], dl
mov dl, byte [esp + 0x7a]
movzx esi, al
movzx eax, byte [esp + 0x79]
shl esi, 6
and dl, 0x1f
or esi, eax
movzx edx, dl
shl esi, 5
or esi, edx
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0x4c]
mov eax, esi
and al, 3
shr ecx, 3
neg al
movzx ecx, cl
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], 0
mov byte [esp + 0x13], 0
sbb eax, eax
neg eax
and esi, 0xfffffffc
lea edx, [esi + eax*4]
mov esi, dword [ebx + 8]
lea eax, [esi - 1]
imul eax, edx
add eax, edi
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
imul eax, ecx
lea edi, [esi + 2]
add eax, edx
shl edi, 4
push edi
mov dword [esp + 0x40], eax
call fcn.0047c609
mov ebp, eax
lea ecx, [ebp + 0x20]
mov dword [esp + 0x24], ecx
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp], 0x20
mov dword [ebp + 4], 1
mov eax, dword [ebx + 8]
add esp, 4
test eax, eax
mov dword [esp + 0x18], 0
jle 0x410d05
mov edi, dword [esp + 0x20]
mov eax, dword [ebx + 4]
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x410c4b
lea eax, [esi + 2]
shl eax, 4
lea esp, [esp]
movzx ecx, word [ebx + 0xe]
add ecx, 0xfffffff8
cmp ecx, 0x18
ja case.0x410b23.9
movzx ecx, byte [ecx + 0x410d60]
jmp dword [ecx*4 + 0x410d4c]
mov edx, dword [esp + 0x14]
movzx ecx, byte [edx]
mov edx, dword [esp + 0x78]
cmp dword [ebx + ecx*4 + 0x28], edx
jmp 0x410b67
mov cx, word [esp + 0x78]
mov edx, dword [esp + 0x14]
cmp word [edx], cx
jmp 0x410b67
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x78]
and edx, 0xffffff
cmp edx, ecx
jmp 0x410b67
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x14]
cmp dword [edx], ecx
setne byte [esp + 0x12]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
add edx, ecx
mov cl, byte [esp + 0x13]
test cl, cl
mov cl, byte [esp + 0x12]
mov dword [esp + 0x14], edx
je 0x410c26
test cl, cl
jne 0x410c37
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x18]
shl edx, 4
add edx, edi
mov edi, dword [esp + 0x28]
mov dword [edx], edi
mov edi, dword [esp + 0x18]
mov dword [edx + 4], edi
mov edi, dword [esp + 0x1c]
inc ecx
mov dword [edx + 8], edi
mov dword [edx + 0xc], ecx
mov edx, dword [ebp + 8]
inc edx
mov ecx, edx
cmp ecx, esi
mov dword [ebp + 8], edx
jb 0x410c1b
add eax, 0x280
add esi, 0x28
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], eax
call fcn.0047c609
mov ecx, dword [ebp + 8]
add ecx, 2
shl ecx, 4
mov ebx, eax
mov eax, ecx
shr ecx, 2
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.0047c604
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x34]
lea edi, [ebx + 0x20]
mov ebp, ebx
mov ebx, dword [esp + 0x2c]
add esp, 8
mov dword [esp + 0x20], edi
mov byte [esp + 0x13], 0
jmp 0x410c37
mov edi, dword [esp + 0x20]
mov byte [esp + 0x13], 0
jmp 0x410c37
test cl, cl
je 0x410c37
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
mov byte [esp + 0x13], 1
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 4]
inc ecx
cmp ecx, edx
mov dword [esp + 0x1c], ecx
jl 0x410b10
mov al, byte [esp + 0x13]
test al, al
je 0x410ce3
mov al, byte [esp + 0x12]
test al, al
je 0x410ce3
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
shl edx, 4
add edx, edi
mov dword [edx], ecx
mov ecx, dword [esp + 0x18]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 8]
inc ecx
mov eax, ecx
cmp eax, esi
mov dword [ebp + 8], ecx
jb 0x410cde
add esi, 0x28
mov dword [esp + 0x2c], esi
add esi, 2
shl esi, 4
push esi
call fcn.0047c609
mov ecx, dword [ebp + 8]
add ecx, 2
shl ecx, 4
mov edx, ecx
shr ecx, 2
mov edi, eax
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebp
mov dword [esp + 0x40], eax
rep movsb byte es:[edi], byte [esi]
call fcn.0047c604
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x34]
lea edi, [ebp + 0x20]
add esp, 8
mov dword [esp + 0x20], edi
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x410af3
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0047c604
push ebx
call fcn.0047c604
mov eax, dword [ebp + 8]
add esp, 8
add eax, 2
push ebp
shl eax, 4
push eax
push 0
call dword [sym.imp.gdi32.dll_ExtCreateRegion]
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.gdi32.dll_GetRegionData]
push ebp
call fcn.0047c604
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret