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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esi + 0x58]
push edi
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x45f994
mov eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
cmp dword [esi + 0x78], 0
je 0x45f987
push esi
call fcn.00540e00
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [esi + 0x58]
lea ecx, [esp + 0x48]
push ecx
mov ebx, eax
push edx
mov dword [esp + 0x40], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
sub edx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x48]
mov edi, eax
mov dword [esp + 0x14], edi
call fcn.0053b4f0
mov ebp, eax
push ebx
mov dword [esp + 0x20], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
sub edx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x48]
mov ebx, eax
mov dword [esp + 0x40], ebx
call fcn.0053b4f0
mov dword [esp + 0x18], eax
test edi, edi
je 0x45fce9
test ebp, ebp
je 0x45fce9
test ebx, ebx
je 0x45fce9
test eax, eax
je 0x45fce9
push ebp
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push edi
call ebp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
push eax
push ebx
call ebp
mov edx, dword [esi]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0x50]
push ebx
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x40]
push edi
mov ecx, esi
call eax
mov edi, dword [esi + 0x78]
mov edx, dword [edi]
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov edx, dword [edx + 0x84]
sub ebp, dword [esp + 0x48]
sub ebx, dword [esp + 0x4c]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call edx
xor edx, edx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov edx, dword [eax]
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, edi
call fcn.0053ad30
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
sub ecx, dword [esp + 0x6c]
add esp, 0x24
imul eax, ecx
add eax, eax
add eax, eax
push eax
call fcn.00587d67
mov edx, dword [esp + 0x58]
sub edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.GDI32.dll_GetBitmapBits]
mov ebx, eax
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
add esp, 4
imul edx, eax
add edx, edx
push ebx
add edx, edx
push edx
push ecx
call edi
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
sub eax, dword [esp + 0x48]
sub ecx, dword [esp + 0x4c]
imul eax, ecx
add eax, eax
add eax, eax
push eax
call fcn.00587d67
mov edx, dword [esp + 0x58]
sub edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x20]
mov ebp, eax
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
add esp, 4
imul edx, eax
add edx, edx
push ebp
add edx, edx
push edx
push ecx
call edi
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
mov ecx, esi
xor edi, edi
call eax
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
sub edx, dword [esp + 0x48]
mov dword [esp + 0x28], eax
imul ecx, edx
add ecx, ecx
add ecx, ecx
test ecx, ecx
jle 0x45fbf3
mov edx, 0xfffffffd
sub edx, ebp
lea ecx, [ebp + 3]
mov dword [esp + 0x20], edx
jmp 0x45fb85
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x28], 0
je 0x45fb91
mov byte [ecx], 0xff
jmp 0x45fbcb
mov al, byte [ecx]
add edx, ecx
mov dl, byte [edx + ebx + 3]
cmp al, dl
jae 0x45fbad
test al, al
jne 0x45fba6
mov byte [ecx], 0xff
jmp 0x45fba8
mov byte [ecx], dl
mov edi, 1
mov al, byte [ecx]
movzx edx, al
cmp edx, dword [esi + 0x11c]
jge 0x45fbcb
test al, al
jbe 0x45fbcb
mov al, byte [esi + 0x11c]
mov byte [ecx], al
mov edi, 1
mov edx, dword [esp + 0x54]
sub edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
add ecx, 4
imul edx, eax
mov eax, dword [esp + 0x20]
add edx, edx
add edx, edx
add eax, ecx
cmp eax, edx
jl 0x45fb81
test edi, edi
jne 0x45fbfa
cmp dword [esp + 0x28], 0
je 0x45fc1e
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
sub edx, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
imul ecx, edx
add ecx, ecx
push ebp
add ecx, ecx
push ecx
push eax
call dword [sym.imp.GDI32.dll_SetBitmapBits]
xor edi, edi
cmp ebp, edi
je 0x45fc2d
push ebp
call fcn.00588add
add esp, 4
cmp ebx, edi
je 0x45fc3a
push ebx
call fcn.00588add
add esp, 4
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
mov cl, byte [esi + 0x109]
mov ebx, dword [esp + 0x38]
push 2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
lea edx, [esp + 0x14]
push edx
push edi
mov dword [esp + 0x30], eax
mov byte [esp + 0x1e], cl
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x34]
push eax
push ecx
mov ecx, dword [esi + 0x58]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x60]
push eax
push ebx
push ecx
mov byte [esp + 0x34], 0
mov byte [esp + 0x35], 0
mov byte [esp + 0x37], 1
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push edi
call ebp
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call esi
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteDC]
call edi
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call edi
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret