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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffef8
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax + 0x1cc]
mov dword [esp + 0x34], eax
mov eax, dword [esp]
call fcn.005e9d24
test al, 1
jne 0x5ed220
mov eax, dword [esp + 0x34]
cmp dword [eax + 0x64], 0
jne 0x5ed220
xor ebx, ebx
jmp 0x5ed222
mov bl, 1
xor eax, eax
mov dword [esp + 0x14], eax
xor edi, edi
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
jne 0x5ed2a7
xor edx, edx
mov eax, dword [esp]
call fcn.005ea2d0
cmp eax, dword [esp]
je 0x5ed261
push 0
mov eax, dword [esp + 4]
call fcn.005059f4
push eax
call sub.user32.dll_ValidateRgn
jmp 0x5edae1
test bl, bl
je 0x5ed28d
push 0
push 0
push 0
push 0
call sub.gdi32.dll_CreateRectRgn
mov dword [esp + 0x14], eax
push 0
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x290]
push eax
call sub.user32.dll_GetUpdateRgn
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 4]
call fcn.005059f4
push eax
call sub.user32.dll_BeginPaint
mov dword [esp + 8], eax
jmp 0x5ed301
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x5ed2c6
mov edi, eax
push edi
lea esi, [edi + 0x94]
lea edi, [esp + 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
jmp 0x5ed301
test bl, bl
je 0x5ed2f2
push 0
push 0
push 0
push 0
call sub.gdi32.dll_CreateRectRgn
mov dword [esp + 0x14], eax
push 0
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x290]
push eax
call sub.user32.dll_GetUpdateRgn
lea eax, [esp + 0x70]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.gdi32.dll_GetClipBox
lea eax, [esp + 0x70]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
mov edx, dword [esp + 0x4c]
cmp eax, dword [edx + 8]
jge 0x5ed32c
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x4c]
cmp eax, dword [edx + 0xc]
jge 0x5ed32c
xor eax, eax
jmp 0x5ed32e
mov al, 1
test al, al
je 0x5ed336
mov al, 1
jmp 0x5ed340
mov eax, dword [esp]
test byte [eax + 0x1c], 8
setne al
test al, al
jne 0x5edaa8
test edi, edi
je 0x5ed361
mov eax, edi
call fcn.00583cf0
mov esi, eax
mov eax, dword [esp + 0x34]
mov dword [eax + 0x60], edi
jmp 0x5ed482
test bl, bl
je 0x5ed47c
mov eax, dword [esp + 0x34]
cmp dword [eax + 0x64], 0
je 0x5ed3d4
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x64]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
cmp word [eax + 0x18], 1
je 0x5ed3b6
mov eax, dword [esp]
mov eax, dword [eax + 0x1cc]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
cmp dword [eax + 0x64], 0
je 0x5ed3b6
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x64]
cmp word [eax + 0x18], 1
je 0x5ed3b6
mov eax, dword [esp]
call fcn.005eab4c
mov eax, dword [esp + 0x38]
cmp dword [eax + 0x1c], 0
je 0x5ed3d4
push 1
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x1c]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.gdi32.dll_ExtSelectClipRgn
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
mov edx, dword [esp + 0x7c]
sub edx, dword [esp + 0x74]
xor ecx, ecx
mov dword [esp + 0xa8], ecx
xor ecx, ecx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
mov eax, edx
mov dword [esp + 0xb4], eax
xor ecx, ecx
mov edx, eax
mov eax, dword [esp + 0xb0]
call fcn.00585cc4
mov edi, eax
mov eax, edi
call fcn.00583cf0
mov esi, eax
cmp dword [esp + 0x14], 0
je 0x5ed44b
mov eax, dword [esp + 0x74]
neg eax
push eax
mov eax, dword [esp + 0x74]
neg eax
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.gdi32.dll_OffsetRgn
mov eax, dword [esp + 0x14]
push eax
push esi
call sub.gdi32.dll_SelectClipRgn
mov ecx, dword [esp + 0x74]
neg ecx
mov edx, dword [esp + 0x70]
neg edx
mov eax, esi
call fcn.004fac2c
push 3
mov ecx, dword [esp + 0x78]
neg ecx
mov edx, dword [esp + 0x74]
neg edx
mov eax, edi
call fcn.005856b4
mov eax, dword [esp + 0x34]
mov dword [eax + 0x60], edi
jmp 0x5ed482
xor edi, edi
mov esi, dword [esp + 8]
push 0
push 0
push 0
push 0
call sub.gdi32.dll_CreateRectRgn
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
push eax
push esi
call sub.gdi32.dll_GetClipRgn
dec eax
je 0x5ed4b1
mov eax, dword [esp + 0x18]
push eax
call sub.gdi32.dll_DeleteObject
xor eax, eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push esi
call sub.gdi32.dll_GetWindowOrgEx
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x64]
test eax, eax
je 0x5ed7d5
mov edx, dword [esp]
test byte [edx + 0x60], 0x80
jne 0x5ed7d5
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov ebp, dword [eax + 8]
dec ebp
cmp ebp, 0
jl 0x5eda24
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 4]
mov ebx, dword [eax + ebp*4]
lea eax, [esp + 0x70]
mov dword [esp + 0x54], eax
lea eax, [ebx + 0xc]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
mov edx, dword [esp + 0x58]
cmp eax, dword [edx + 8]
jge 0x5ed544
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x58]
cmp eax, dword [edx]
jle 0x5ed544
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x58]
cmp eax, dword [edx + 0xc]
jge 0x5ed544
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0x58]
cmp eax, dword [edx + 4]
jg 0x5ed548
xor eax, eax
jmp 0x5ed54a
mov al, 1
test al, al
je 0x5ed7c6
mov eax, dword [ebx]
mov dword [esp + 0x40], eax
push 0
mov eax, dword [esp + 0x14]
sub eax, dword [ebx + 8]
push eax
mov eax, dword [esp + 0x14]
sub eax, dword [ebx + 4]
push eax
push esi
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x5ed59c
mov edx, dword [ebx + 0x18]
sub edx, dword [ebx + 8]
push edx
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 4]
sub edx, eax
push edx
mov edx, dword [ebx + 0x10]
sub edx, dword [ebx + 8]
push edx
mov edx, dword [ebx + 0xc]
sub edx, eax
push edx
push esi
call sub.gdi32.dll_IntersectClipRect
jmp 0x5ed5cf
mov edx, dword [esp + 0x10]
neg edx
push edx
mov edx, dword [esp + 0x10]
neg edx
push edx
push eax
call sub.gdi32.dll_OffsetRgn
push 1
mov eax, dword [ebx + 0x1c]
push eax
push esi
call sub.gdi32.dll_ExtSelectClipRgn
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [ebx + 0x1c]
push eax
call sub.gdi32.dll_OffsetRgn
lea eax, [esp + 0xd8]
push eax
push esi
call sub.gdi32.dll_GetClipBox
dec eax
je 0x5ed7bb
push 3
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov eax, edi
call fcn.005856b4
lea edx, [esp + 0xe8]
mov eax, edi
call fcn.005854f0
lea edx, [esp + 0xd8]
mov ecx, 3
mov eax, edi
call fcn.00585418
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x1cc]
mov edx, dword [0x5e9434]
call fcn.0040751c
test al, al
je 0x5ed795
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x1cc]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x44]
mov dword [eax + 0x60], edi
mov eax, dword [esp + 0x44]
test byte [eax + 0x68], 4
jne 0x5ed65b
mov edx, esi
mov eax, dword [esp + 0x44]
call fcn.004d27c0
mov eax, edi
call fcn.00585484
test al, al
jne 0x5ed777
mov eax, dword [esp + 0x44]
test byte [eax + 0x68], 2
je 0x5ed76b
test byte [ebx + 0x20], 1
jne 0x5ed76b
xor eax, eax
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x60], eax
xor ecx, ecx
lea edx, [esp + 0x5c]
mov eax, esi
call fcn.005e99dc
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
jne 0x5ed6b6
xor edx, edx
mov eax, dword [esp + 0x40]
call fcn.005e9f98
jmp 0x5ed777
mov eax, dword [esp + 0x1c]
call fcn.005e9a84
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
je 0x5ed754
push esi
push edi
lea esi, [edi + 0x94]
lea edi, [esp + 0xd0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5ed749
inc eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
add eax, eax
mov edx, dword [esp + 0x20]
push esi
push edi
lea esi, [edx + eax*8 + 0x20]
lea edi, [esp + 0xc0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
push 3
lea ecx, [esp + 0xcc]
lea edx, [esp + 0xbc]
mov eax, edi
call fcn.00585390
test al, al
je 0x5ed73f
xor edx, edx
mov eax, dword [esp + 0x40]
call fcn.005e9f98
inc dword [esp + 0x24]
dec dword [esp + 0x48]
jne 0x5ed6fc
mov eax, dword [esp + 0x20]
call fcn.00405580
jmp 0x5ed75f
xor edx, edx
mov eax, dword [esp + 0x40]
call fcn.005e9f98
mov eax, dword [esp + 0x1c]
push eax
call sub.gdi32.dll_DeleteObject
jmp 0x5ed777
mov edx, dword [ebx + 0x20]
mov eax, dword [esp + 0x40]
call fcn.005e9f98
mov eax, dword [esp + 0x44]
test byte [eax + 0x68], 4
jne 0x5ed78c
xor edx, edx
mov eax, dword [esp + 0x44]
call fcn.004d27c0
mov eax, dword [esp + 0x44]
xor edx, edx
mov dword [eax + 0x60], edx
lea edx, [esp + 0xe8]
mov ecx, 3
mov eax, edi
call fcn.00585504
push 3
mov ecx, dword [ebx + 8]
neg ecx
mov edx, dword [ebx + 4]
neg edx
mov eax, edi
call fcn.005856b4
mov eax, dword [esp + 0x18]
push eax
push esi
call sub.gdi32.dll_SelectClipRgn
dec ebp
cmp ebp, 0xffffffff
jne 0x5ed4ed
jmp 0x5eda24
mov eax, dword [esp]
mov eax, dword [eax + 0x20c]
test eax, eax
je 0x5ed7eb
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], eax
jmp 0x5ed7f1
xor eax, eax
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x2c], 0
jg 0x5ed80a
mov edx, esi
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx + 0x114]
jmp 0x5eda24
mov eax, dword [esp + 0x2c]
add eax, eax
add eax, eax
call fcn.00405564
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x2c]
dec eax
test eax, eax
jl 0x5ed900
inc eax
mov dword [esp + 0x48], eax
xor ebp, ebp
mov eax, dword [esp]
mov eax, dword [eax + 0x20c]
mov eax, dword [eax + 4]
mov ebx, dword [eax + ebp*4]
lea eax, [esp + 0x70]
mov dword [esp + 0x64], eax
lea edx, [esp + 0xf8]
mov eax, ebx
call fcn.004fc190
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
cmp eax, dword [esp + 0x100]
jge 0x5ed89b
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 8]
cmp eax, dword [esp + 0xf8]
jle 0x5ed89b
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 4]
cmp eax, dword [esp + 0x104]
jge 0x5ed89b
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0xc]
cmp eax, dword [esp + 0xfc]
jg 0x5ed89f
xor eax, eax
jmp 0x5ed8a1
mov al, 1
test al, al
je 0x5ed8f5
cmp byte [ebx + 0x65], 0
je 0x5ed8f5
inc dword [esp + 0x28]
mov eax, dword [esp]
mov eax, dword [eax + 0x20c]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebp*4]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [edx + ecx*4], eax
test byte [ebx + 0x5c], 0x40
jne 0x5ed8d9
test edi, edi
jne 0x5ed8f5
test byte [ebx + 0x5f], 2
je 0x5ed8f5
mov eax, dword [ebx + 0x50]
add eax, dword [ebx + 0x58]
push eax
mov eax, dword [ebx + 0x4c]
add eax, dword [ebx + 0x54]
push eax
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x4c]
push eax
push esi
call sub.gdi32.dll_ExcludeClipRect
inc ebp
dec dword [esp + 0x48]
jne 0x5ed837
lea eax, [esp + 0xd8]
push eax
push esi
call sub.gdi32.dll_GetClipBox
mov eax, dword [esp + 0xd8]
cmp eax, dword [esp + 0xe0]
jge 0x5ed932
mov eax, dword [esp + 0xdc]
cmp eax, dword [esp + 0xe4]
jge 0x5ed932
xor eax, eax
jmp 0x5ed934
mov al, 1
test al, al
jne 0x5ed945
mov edx, esi
mov eax, dword [esp]
mov ecx, dword [eax]
call dword [ecx + 0x114]
mov eax, dword [esp + 0x18]
push eax
push esi
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [esp + 0x28]
test eax, eax
jl 0x5eda1b
inc eax
mov dword [esp + 0x48], eax
xor ebp, ebp
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + ebp*4]
push 0
mov eax, dword [esp + 0x14]
sub eax, dword [ebx + 0x50]
push eax
mov eax, dword [esp + 0x14]
sub eax, dword [ebx + 0x4c]
push eax
push esi
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebx + 0x58]
push eax
mov eax, dword [ebx + 0x54]
push eax
push 0
push 0
push esi
call sub.gdi32.dll_IntersectClipRect
lea eax, [esp + 0xd8]
push eax
push esi
call sub.gdi32.dll_GetClipBox
mov eax, dword [esp + 0xd8]
cmp eax, dword [esp + 0xe0]
jge 0x5ed9c6
mov eax, dword [esp + 0xdc]
cmp eax, dword [esp + 0xe4]
jge 0x5ed9c6
xor eax, eax
jmp 0x5ed9c8
mov al, 1
test al, al
jne 0x5eda05
test edi, edi
je 0x5ed9df
push 3
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x4c]
mov eax, edi
call fcn.005856b4
push edi
mov ecx, esi
mov edx, 0xf
mov eax, ebx
call fcn.004fde68
test edi, edi
je 0x5eda05
push 3
mov ecx, dword [ebx + 0x50]
neg ecx
mov edx, dword [ebx + 0x4c]
neg edx
mov eax, edi
call fcn.005856b4
mov eax, dword [esp + 0x18]
push eax
push esi
call sub.gdi32.dll_SelectClipRgn
inc ebp
dec dword [esp + 0x48]
jne 0x5ed963
mov eax, dword [esp + 0x30]
call fcn.00405580
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push eax
push esi
call sub.gdi32.dll_SetWindowOrgEx
cmp dword [esp + 0x18], 0
je 0x5eda47
mov eax, dword [esp + 0x18]
push eax
call sub.gdi32.dll_DeleteObject
test edi, edi
je 0x5edaa8
mov eax, dword [esp + 0x34]
xor edx, edx
mov dword [eax + 0x60], edx
mov eax, dword [esp + 4]
cmp edi, dword [eax + 8]
je 0x5edaa8
push 0
push esi
call sub.gdi32.dll_SelectClipRgn
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov eax, esi
call fcn.004fac2c
push 3
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov eax, edi
call fcn.005856b4
mov eax, dword [esp + 0x74]
push eax
lea eax, [esp + 0xac]
push eax
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x10]
mov eax, edi
call fcn.0057da60
mov eax, edi
call fcn.00585e2c
cmp dword [esp + 0x14], 0
je 0x5edab9
mov eax, dword [esp + 0x14]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [esp + 4]
cmp dword [eax + 4], 0
jne 0x5edae1
mov eax, dword [esp + 4]
cmp dword [eax + 8], 0
jne 0x5edae1
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 4]
call fcn.005059f4
push eax
call sub.user32.dll_EndPaint
add esp, 0x108
pop ebp
pop edi
pop esi
pop ebx
ret