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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x805f43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax]
sub eax, 0x14
je 0x8059cd
sub eax, 0x101
je 0x805a52
sub eax, 0xed
je 0x8059f0
sub eax, 0x115
je 0x805bb7
jmp 0x805e71
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.0083c89c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x68]
mov byte [edx + 0x29], al
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 1
jmp 0x805f2d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
cmp byte [eax + 0x24], 0
je 0x805e71
lea eax, [ebp - 0x24]
call fcn.0082ad8c
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 4]
call fcn.007fdf28
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x34]
call fcn.00412fd8
test al, al
je 0x805e71
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
or ecx, 0xffffffff
mov eax, dword [ebp - 4]
call fcn.008013bc
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
jmp 0x805f2d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
lea ebx, [eax + 0x28]
mov eax, dword [ebp - 8]
cmp word [eax + 4], 4
jne 0x805ad8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x98]
mov edx, 0x805f5c
call fcn.00870dcc
test al, al
je 0x805ad8
mov dword [ebx], 0x1c
mov dword [ebx + 4], 0x17
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x98]
mov edx, 0x805f5c
call fcn.00870dcc
test al, al
jne 0x805abb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
inc dword [eax + 0x3c]
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
add eax, 0x28
push eax
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
push eax
call sub.user32.dll_SetScrollInfo
mov eax, dword [ebp - 8]
cmp word [eax + 4], 5
jne 0x805b2c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x98]
mov edx, 0x805f5c
call fcn.00870dcc
test al, al
je 0x805b2c
mov dword [ebx], 0x1c
mov dword [ebx + 4], 0x17
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x14], eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
add eax, 0x28
push eax
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
push eax
call sub.user32.dll_SetScrollInfo
mov eax, dword [ebp - 8]
cmp word [eax + 4], 8
jne 0x805e71
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x98]
mov edx, 0x805f5c
call fcn.00870dcc
test al, al
je 0x805e71
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x98]
mov eax, dword [eax]
call fcn.00407ec4
mov eax, dword [ebp - 0x38]
mov edx, 0x805f80
call fcn.0040b1c8
je 0x805e71
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [0x7fad64]
call fcn.00408484
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ecx, 4
mov edx, 0x115
call fcn.00800e58
jmp 0x805e71
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
mov eax, dword [ebp - 4]
add eax, 0x3c
push eax
mov eax, dword [ebp - 4]
add eax, 0x44
push eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 0xc]
mov eax, dword [ebp - 4]
lea edx, [eax + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.007fbfb4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x805c06
cmp byte [eax + 0x24], 0
je 0x805c06
xor ecx, ecx
mov edx, 1
call fcn.007fdbcc
mov ebx, eax
jmp 0x805c08
xor ebx, ebx
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x68]
cmp byte [esi + 0x90], 0
jne 0x805c23
mov eax, dword [esi + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
je 0x805c47
mov eax, dword [ebp - 4]
cmp byte [eax + 9], 0
jne 0x805c34
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
xor ecx, ecx
call fcn.007fce1c
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x78], 0
je 0x805c5d
add dword [ebp - 0x18], ebx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, ebx
call fcn.008a0988
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.005209e0
call fcn.0051a144
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
call fcn.005209e0
call fcn.00519150
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x805d87
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x8c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
mov eax, dword [ebp - 0xc]
call fcn.00544e74
mov eax, dword [ebp - 4]
cmp dword [eax + 0x80], 0
jne 0x805cd9
mov eax, dword [ebp - 4]
cmp dword [eax + 0x7c], 0
je 0x805d48
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x7c]
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.007fdbcc
movzx edx, byte [esi + 0x24]
imul edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x8c]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x90]
pop edx
sub eax, edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x84]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x88]
sub eax, ebx
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_IntersectClipRect
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
add eax, 8
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
mov ecx, 0xf
mov eax, dword [ebp - 4]
call fcn.0080e054
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x805d8e
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_RestoreDC
ret
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0080277c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
sub eax, 0xf
je 0x805f23
sub eax, 0x38
je 0x805f00
sub eax, 0xa0b9
jne 0x805f2d
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
sub ax, 2
jne 0x805f2d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
call fcn.0083c888
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 8]
jne 0x805f2d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x98]
mov edx, dword [0x713998]
call fcn.00408484
test al, al
je 0x805f2d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov esi, dword [eax + 0x98]
movzx ebx, byte [esi + 0x2f4]
xor edx, edx
mov eax, esi
call fcn.0071bc00
mov edx, ebx
mov eax, esi
call fcn.0071bc00
jmp 0x805f2d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x805f2d
push 0
xor ecx, ecx
mov edx, 0x85
mov eax, dword [ebp - 4]
call fcn.0080d7e8
jmp 0x805f2d
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.007fcd3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x805f4a
lea eax, [ebp - 0x38]
call fcn.00409fc0
ret