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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
cmp dword [ebx + 0x680], esi
je 0x4288c1
cmp eax, esi
je 0x4288ba
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
mov edi, dword [eax + 0xc]
sub edi, dword [eax + 4]
cmp ecx, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
jle 0x4288ba
cmp edi, esi
jle 0x4288ba
mov edx, dword [eax]
mov ecx, dword [ebx + 0x63c]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x640]
push eax
push ecx
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x40], edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [ebx + 0xe0]
push edx
lea ebx, [esp + 0x24]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.00402b10
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x40], esi
cmp edi, esi
je 0x42878f
push 0x2c
lea eax, [esp + 0x60]
push esi
push eax
call fcn.00474b70
mov ebx, dword [esp + 0x24]
add esp, 0xc
push esi
push esi
lea eax, [esp + 0x4c]
push eax
mov ecx, 1
mov word [esp + 0x74], cx
push esi
lea ecx, [esp + 0x6c]
push ecx
mov edx, 0x20
push esi
mov dword [esp + 0x74], 0x28
mov word [esp + 0x82], dx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x84], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x40], eax
cmp eax, esi
jne 0x428762
mov dword [esp + 0x44], esi
jmp 0x42878f
mov eax, ebx
shl eax, 5
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add eax, eax
add eax, eax
lea edx, [edi - 1]
imul edx, eax
add dword [esp + 0x44], edx
neg eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], eax
lea esi, [esp + 0x3c]
call fcn.00408d80
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push 0xcc0020
mov ebx, eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push edi
push eax
push 0
push 0
push ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x30]
mov edx, dword [ecx + 0xd8]
mov ecx, dword [esp + 0x2c]
imul edx, eax
lea edi, [edx + ecx*4]
mov edx, dword [ebp + 8]
add edi, dword [edx + 0xdc]
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
jge 0x428834
mov eax, dword [esp + 0x34]
cmp ecx, eax
mov esi, edi
mov ebx, ecx
jge 0x428818
lea esp, [esp]
mov ecx, dword [ebp + 0xc]
call fcn.004284f0
mov eax, dword [esp + 0x34]
inc ebx
add esi, 4
cmp ebx, eax
jl 0x428800
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 8]
add edi, dword [edx + 0xd8]
mov edx, dword [esp + 0x10]
inc edx
cmp edx, dword [esp + 0x38]
mov dword [esp + 0x10], edx
jl 0x4287f1
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov esi, dword [ebp + 8]
push eax
call fcn.00426cd0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
push 0xcc0020
push 0
push 0
push ebx
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
sub dword [esp + 0x58], 1
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
jne 0x428886
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0
call ebx
lea esi, [esp + 0x3c]
call fcn.00408db0
test edi, edi
je 0x4288c1
mov edx, dword [esp + 0x28]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4288ae
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, ebx
call fcn.00426ae0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8