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

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
mov ebp, dword [esp + 0x78]
mov eax, dword [ebp]
mov eax, dword [eax + 0xc]
push esi
push edi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call eax
test eax, eax
jl 0x420d43
cmp dword [esp + 0x1c], ebx
je 0x420d43
cmp dword [esp + 0x18], ebx
je 0x420d43
push 0x428
call fcn.00490828
push 0x428
mov edi, eax
push ebx
push edi
call fcn.004a1210
mov dword [edi], 0x28
mov ecx, dword [esp + 0x2c]
mov dword [edi + 4], ecx
mov edx, dword [esp + 0x28]
neg edx
mov dword [edi + 8], edx
add esp, 0x10
mov eax, 1
mov word [edi + 0xc], ax
lea edx, [esp + 0x64]
mov dword [edi + 0x10], ebx
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x10]
push edx
push ebp
call eax
lea ecx, [esp + 0x64]
push 0x4c34dc
push ecx
call fcn.0041d530
add esp, 8
test eax, eax
jne 0x420a5b
lea edx, [esp + 0x64]
push 0x4c34cc
push edx
call fcn.0041d530
add esp, 8
test eax, eax
jne 0x420a5b
lea eax, [esp + 0x64]
push 0x4c34fc
push eax
call fcn.0041d530
add esp, 8
test eax, eax
jne 0x420a50
lea ecx, [esp + 0x64]
push 0x4c34ec
push ecx
call fcn.0041d530
add esp, 8
test eax, eax
jne 0x420a50
lea edx, [esp + 0x64]
push 0x4c34ac
push edx
call fcn.0041d530
add esp, 8
test eax, eax
je 0x420938
mov eax, 2
mov ecx, 1
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov word [edi + 0xe], cx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, ecx
shr eax, 3
lea edx, [eax*8]
mov dword [esp + 0x20], 1
cmp edx, ecx
jae 0x420843
inc eax
test al, 3
je 0x420851
shr eax, 2
lea eax, [eax*4 + 4]
imul eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push ecx
push esi
mov dword [esp + 0x18], ebx
call edx
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp]
mov edx, dword [eax + 0x18]
push ecx
push ebp
call edx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00490828
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push esi
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov edx, dword [esp + 0x28]
cmp edx, ebx
jbe 0x42092a
lea ecx, [edi + 0x29]
lea eax, [esi + 2]
mov dword [esp + 0x24], edx
lea ebx, [ebx]
movzx edx, byte [eax + 1]
mov byte [ecx + 2], dl
cmp byte [ecx + 2], 0xff
movzx edx, byte [eax]
mov byte [ecx - 1], dl
movzx edx, byte [eax - 1]
mov byte [ecx], dl
movzx edx, byte [eax - 2]
mov byte [ecx + 1], dl
je 0x42091d
mov edx, dword [eax - 2]
and edx, 0xffffff
mov dword [esp + 0x2c], edx
add ecx, 4
add eax, 4
sub dword [esp + 0x24], 1
jne 0x4208f0
push esi
call fcn.0049081d
add esp, 4
jmp 0x420a64
lea eax, [esp + 0x64]
push 0x4c34bc
push eax
call fcn.0041d530
add esp, 8
test eax, eax
je 0x420a3b
mov eax, pe_nt_image_headers32
mov dword [edi + 0x20], eax
mov dword [esp + 0x44], eax
mov ecx, 8
mov word [edi + 0xe], cx
lea eax, [esp + 0x10]
mov dword [edi + 0x24], ebx
mov edx, dword [esi]
mov ecx, dword [edx + 0x24]
push eax
push esi
mov dword [esp + 0x28], 8
mov dword [esp + 0x18], ebx
call ecx
mov eax, dword [esp + 0x10]
mov edx, dword [ebp]
mov ecx, dword [edx + 0x18]
push eax
push ebp
call ecx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
push ecx
push eax
call edx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00490828
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x18]
push esi
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov edx, dword [esp + 0x40]
cmp edx, ebx
jbe 0x420a64
lea eax, [esi + 2]
lea ecx, [edi + 0x29]
mov esi, edx
movzx edx, byte [eax + 1]
mov byte [ecx + 2], dl
cmp byte [ecx + 2], 0xff
movzx edx, byte [eax]
mov byte [ecx - 1], dl
movzx edx, byte [eax - 1]
mov byte [ecx], dl
movzx edx, byte [eax - 2]
mov byte [ecx + 1], dl
je 0x420a2e
mov edx, dword [eax - 2]
and edx, 0xffffff
mov dword [esp + 0x2c], edx
add ecx, 4
add eax, 4
sub esi, 1
jne 0x420a01
jmp 0x420a64
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0049dc2a
add esp, 0x6c
ret
mov eax, 0x20
mov word [edi + 0xe], ax
jmp 0x420a64
mov ecx, 0x18
mov word [edi + 0xe], cx
push ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_GetDC]
cmp word [edi + 0xe], 8
mov esi, eax
jbe 0x420a91
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
push ebx
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x10], eax
jmp 0x420b18
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
push 0
mov ebx, eax
lea eax, [esp + 0x38]
push eax
push 1
push edi
push esi
mov dword [esp + 0x50], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x44]
lea ecx, [edi + 0x28]
push ecx
push edx
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetDIBColorTable]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov dword [esp + 0x34], eax
mov eax, 0x20
mov word [edi + 0xe], ax
xor eax, eax
push eax
push eax
lea ecx, [esp + 0x30]
push ecx
push eax
push edi
push esi
mov dword [edi + 0x24], eax
mov dword [edi + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push ebx
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dx, word [esp + 0x20]
mov word [edi + 0xe], dx
xor ebx, ebx
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x10], ebx
je 0x420d43
movzx ecx, word [edi + 0xe]
mov edx, dword [esp + 0x1c]
movzx eax, cx
imul eax, edx
shr eax, 3
mov dword [esp + 0x14], eax
cmp cx, 1
jne 0x420b55
lea ecx, [eax*8]
cmp ecx, edx
jae 0x420b55
inc eax
mov dword [esp + 0x14], eax
test al, 3
je 0x420b69
shr eax, 2
lea edx, [eax*4 + 4]
mov dword [esp + 0x14], edx
mov eax, edx
mov esi, dword [esp + 0x30]
mov edx, dword [ebp]
mov ecx, eax
imul ecx, dword [esp + 0x18]
push esi
push ecx
push eax
mov eax, dword [edx + 0x1c]
push ebx
push ebp
call eax
test eax, eax
jge 0x420b94
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x10], ebx
cmp word [edi + 0xe], 0x20
jne 0x420c4a
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x18], ebx
jbe 0x420c4a
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x24], ecx
lea ebx, [ebx]
test eax, eax
jbe 0x420c2d
movzx ebp, byte [ecx + 2]
movzx esi, byte [ecx - 1]
imul esi, ebp
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx]
sar edx, 7
imul esi, ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx - 1], al
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx + 1]
sar edx, 7
imul esi, ebp
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx], al
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 1], al
mov eax, dword [esp + 0x1c]
inc ebx
add ecx, 4
cmp ebx, eax
jb 0x420bc4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add ecx, dword [esp + 0x14]
inc edx
xor ebx, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
cmp edx, dword [esp + 0x18]
jb 0x420bc0
mov ebp, dword [esp + 0x3c]
cmp ebp, ebx
je 0x420d3a
cmp dword [esp + 0x2c], 0xffffffff
jne 0x420ca8
mov ecx, dword [edi + 8]
mov esi, dword [esp + 0x38]
mov edx, dword [edi + 4]
push 0xcc0020
push ebx
push ebx
push esi
neg ecx
push ecx
push edx
push ebx
push ebx
mov ebx, dword [esp + 0x54]
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x420d3a
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push ebx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x10], ebp
jmp 0x420d3a
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
mov ecx, dword [edi + 8]
mov ebp, dword [esp + 0x34]
mov esi, eax
mov eax, dword [edi + 4]
push esi
lea edx, [esp + 0x58]
push edx
push ebp
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x2c]
mov ecx, dword [edi + 4]
mov esi, dword [esp + 0x38]
push edx
neg eax
push eax
push ecx
push ebx
push ebx
push esi
push eax
push ecx
push ebx
push ebx
push ebp
call dword [sym.imp.MSIMG32.dll_TransparentBlt]
test eax, eax
je 0x420d3a
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push ebp
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
push edi
call fcn.0049081d
add esp, 4
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049dc2a
add esp, 0x6c
ret