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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100815c4]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 8]
sub esp, 0x18
push ebx
push esi
push edi
push 0xcc0020
push ecx
mov ecx, dword [0x10082254]
push edx
mov edx, dword [eax + 0x14]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x70]
push ecx
xor ebx, ebx
push ebx
push ebx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [0x100815c4]
mov edx, dword [eax + 0x74]
lea ecx, [eax + 0x2c]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [0x100815c4]
mov ecx, dword [edx + 0x30]
mov ax, word [0x1007bd00]
mov dword [edx + 0x48], ecx
mov ecx, dword [edx + 0x34]
mov dword [edx + 0x4c], ecx
mov ecx, 1
mov word [edx + 0x50], cx
mov cx, word [edx + 0x3c]
imul cx, ax
mov word [edx + 0x3e], ax
mov eax, 1
shl eax, cl
mov dword [edx + 0x44], 0x28
mov word [edx + 0x52], cx
mov dword [edx + 0x54], ebx
cmp eax, dword [0x1007bd04]
mov dword [edx + 0x58], ebx
mov dword [edx + 0x5c], ebx
mov dword [edx + 0x60], ebx
mov dword [edx + 0x64], ebx
mov dword [edx + 0x68], ebx
mov dword [edx + 0x18], eax
jle 0x1000518c
mov dword [edx + 0x18], ebx
mov eax, dword [edx + 0x18]
lea eax, [eax*4 + 0x28]
mov dword [edx + 0x20], eax
cmp dword [edx + 0x8c], ebx
jne 0x100051b7
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
mov edx, dword [0x100815c4]
add esp, 4
mov dword [edx + 0x78], eax
mov dword [ebp - 0x10], eax
mov edi, dword [edx + 0x78]
lea esi, [edx + 0x44]
mov dword [edx + 0x6c], edi
push ebx
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x100815c4]
mov edx, dword [eax + 0x6c]
mov ecx, dword [eax + 0x4c]
push edx
mov edx, dword [eax + 0x74]
mov eax, dword [0x100815c0]
push ebx
push ecx
push ebx
push edx
push eax
call dword [sym.imp.GDI32.dll_GetDIBits]
mov edx, dword [0x100815c4]
mov esi, dword [edx + 0x6c]
mov eax, dword [edx + 0x20]
lea edi, [edx + 0x44]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 0x58]
mov dword [edx + 0x1c], eax
add eax, ecx
mov dword [edx + 0x20], eax
cmp dword [edx + 0x8c], ebx
jne 0x1000522a
mov ecx, dword [ebp - 0x10]
push eax
push ecx
mov dword [edx + 0x78], ecx
call dword [sym.imp.MSVCR90.dll_realloc]
mov edx, dword [0x100815c4]
add esp, 8
mov dword [edx + 0x78], eax
mov eax, dword [edx + 0x78]
mov ecx, dword [edx + 0x18]
mov esi, dword [edx + 0x44]
push ebx
push eax
lea ecx, [esi + ecx*4]
add ecx, eax
push ecx
mov ecx, dword [edx + 0x74]
mov dword [edx + 0x6c], eax
mov eax, dword [edx + 0x4c]
mov edx, dword [0x100815c0]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [0x100815c4]
cmp dword [eax + 0x8c], ebx
je 0x1000536a
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 0x88]
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 0x78]
mov eax, dword [eax + 0x90]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0xc]
shr ecx, 2
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
add esi, edx
mov edi, dword [ebp - 0x10]
add edi, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x100052ac
mov dword [ebp - 4], 0
jmp 0x100052b3
mov dword [ebp - 4], 1
mov eax, dword [0x100815c4]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x90], ecx
cmp dword [ebp - 4], ebx
je 0x1000544f
mov edx, dword [eax + 0x20]
sub edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x18], edx
mov dword [eax + 0x7c], ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x18]
shr ecx, 2
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
add esi, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
lodsd eax, dword [esi]
sub eax, dword [edx]
add edx, 4
stosd dword es:[edi], eax
dec ecx
je 0x10005300
jmp 0x100052f4
mov eax, dword [0x100815c4]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x78]
mov eax, dword [eax + 0x88]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
shr ecx, 2
shl ecx, 2
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
sub ecx, eax
je 0x1000534a
mov esi, dword [ebp - 0x14]
add esi, eax
mov edi, dword [ebp - 0x18]
add edi, eax
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x100815c4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
pop edi
sub edx, ecx
pop esi
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], ecx
mov eax, dword [eax + 0x90]
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [eax + 0x20]
mov edi, dword [sym.imp.MSVCR90.dll_malloc]
push esi
call edi
mov ecx, dword [0x100815c4]
push esi
mov dword [ecx + 0x88], eax
call edi
mov ecx, dword [0x100815c4]
mov edx, dword [ecx + 0x20]
mov dword [ecx + 0x7c], eax
mov dword [ecx + 0x80], eax
mov eax, dword [ecx + 0x78]
mov ecx, dword [ecx + 0x88]
add esp, 8
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 2
shl ecx, 2
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
sub ecx, eax
je 0x100053dc
mov esi, dword [ebp - 0x14]
add esi, eax
mov edi, dword [ebp - 0x18]
add edi, eax
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x100815c4]
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 0x7c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0xc]
shr ecx, 2
shl ecx, 2
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
sub ecx, eax
je 0x10005423
mov esi, dword [ebp - 0x14]
add esi, eax
mov edi, dword [ebp - 0x18]
add edi, eax
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x100815c4]
mov ecx, 1
mov dword [eax + 0x8c], ecx
mov dword [eax + 0x90], ecx
mov ecx, dword [eax + 0x20]
pop edi
mov dword [eax + 0x28], ebx
pop esi
mov dword [eax + 0x24], ecx
mov eax, dword [eax + 0x90]
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret