Function at 0x1004a99
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 8]
mov ax, word [ebx + 0x10]
movzx edx, word [ebx + 0xe]
push esi
lea esi, [ebx + 0xc]
movzx ecx, word [esi]
sub ax, cx
inc ax
mov word [ebp - 8], ax
mov ax, word [ebx + 0x12]
sub ax, dx
inc ax
cmp byte [ebp + 0xc], 0
mov word [ebp - 6], ax
mov eax, dword [ebp + 0x10]
push edi
jne 0x100e75c
test ax, ax
jne 0x100493b
mov edi, eax
shr edi, 0x10
test di, di
je 0x1004b59
add ecx, eax
shr eax, 0x10
mov word [ebp - 0x10], cx
add eax, edx
cmp word [ebp - 0x10], 0
mov edx, dword [ebp - 6]
mov word [ebp - 0xe], ax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
lea eax, [ecx + eax - 1]
mov word [ebp - 0xc], ax
mov ecx, dword [ebp - 0xe]
lea ecx, [edx + ecx - 1]
mov word [ebp - 0xa], cx
jl 0x1009d55
cmp word [ebp - 0xe], 0
jl 0x1009d55
test ax, ax
jl 0x1009d55
test cx, cx
jl 0x1009d55
cmp ax, word [ebx + 8]
jge 0x1009d55
cmp cx, word [ebx + 0xa]
jge 0x1009d55
test byte [ebx], 1
je 0x1009d3c
mov eax, dword [ebx + 0x74]
and dword [ebx + 0x68], 0xfffffffe
mov dword [ebp + 0xc], eax
mov di, word [ebp + 0xe]
push ebx
call fcn.01001ba9
mov ax, word [0x10382f8]
cmp dword [0x1038258], ebx
jne 0x1009d24
test ax, ax
jne 0x1009d24
test dword [0x10382cc], 0x101
jne 0x1009d24
push 1
call fcn.01002f2e
cmp byte [0x1038416], 0
jne 0x100e77b
test byte [ebx], 1
je 0x1004a10
test byte [0x10382cc], 0x80
jne 0x100e795
movzx eax, word [esi]
mov dx, word [ebx + 0x10]
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
sub dx, ax
mov dword [ebp - 8], eax
movsx eax, word [ebp + 0xc]
inc dx
movsx ecx, dx
imul ecx, eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x20], ecx
call fcn.01004ba7
test eax, eax
movzx eax, word [ebx + 0xe]
jne 0x100e7d0
mov si, word [ebx + 0x12]
sub si, ax
inc si
movsx ecx, di
movsx eax, si
imul eax, ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x1c], eax
cmp byte [0x1038416], 0
jne 0x100e80b
call fcn.01004ba7
movsx ecx, word [ebp - 0xe]
test eax, eax
lea eax, [ebp - 0x38]
push eax
push 0
jne 0x100e828
push 0
lea eax, [ebp - 0x28]
push eax
movzx eax, word [ebx + 0xe]
cwde
sub eax, ecx
imul eax, dword [ebp + 0xc]
movsx ecx, word [ebp - 0x10]
push eax
movsx eax, word [ebp - 8]
sub eax, ecx
imul eax, dword [ebp + 8]
push eax
push dword [0x1038268]
call dword [sym.imp.USER32.dll_ScrollDC]
movsx ecx, word [ebp - 0xe]
mov esi, eax
movsx eax, word [ebx + 0xe]
sub eax, ecx
movsx ecx, word [ebp - 0x10]
push eax
movsx eax, word [ebx + 0xc]
sub eax, ecx
push eax
push dword [0x1038260]
push 0x4004
call dword [sym.imp.USER32.dll_NotifyWinEvent]
mov ecx, dword [ebp - 0x10]
test esi, esi
mov esi, dword [ebp - 0xc]
je 0x1009d4a
mov eax, dword [ebp - 0x38]
cdq
idiv dword [ebp + 8]
add eax, ecx
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x30]
dec eax
cdq
idiv dword [ebp + 8]
add eax, ecx
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x34]
cdq
idiv dword [ebp + 0xc]
add eax, dword [ebp - 0xe]
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x2c]
dec eax
cdq
idiv dword [ebp + 0xc]
add eax, dword [ebp - 0xe]
mov word [ebp - 0x12], ax
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], esi
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.01001b5b
push 0
call fcn.01002f2e
cmp byte [0x1038416], 0
jne 0x100e885
push ebx
call fcn.01001bcf
test byte [ebx], 1
je 0x1004b53
or dword [ebx + 0x68], 1
push ebx
call fcn.01004b67
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
test al, 2
jne 0x100e831
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
jmp 0x1004b37
xor edi, edi
inc edi
mov eax, edi
mov word [ebp + 0xc], ax
jmp 0x10049b9
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
jmp 0x1004b20
mov eax, 0xc000000d
jmp 0x1004b5b
cmp ax, cx
jne 0x100e76f
mov ecx, eax
shr ecx, 0x10
cmp cx, dx
je 0x1004b59
mov word [ebp - 0x10], ax
shr eax, 0x10
jmp 0x1004946
test byte [0x10383d8], 1
jne 0x10049fe
push 0
push ebx
call fcn.01024d3a
jmp 0x10049fe
mov ax, word [ebp - 0x10]
cmp ax, word [esi]
jne 0x1004a10
mov ax, word [ebp - 0xe]
sub ax, word [ebx + 0xe]
push 0
movzx eax, ax
push eax
push ebx
call fcn.0100279e
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.01023fd1
jmp 0x1004b30
mov cx, word [ebx + 0x12]
sub cx, ax
inc cx
cmp ax, word [ebp - 0xe]
movsx esi, di
movsx ecx, cx
mov dword [ebp + 0xc], esi
lea eax, [ecx - 1]
jle 0x100e7ee
lea eax, [ecx - 2]
imul eax, esi
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
dec ecx
imul ecx, dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x3c], ecx
jmp 0x1004a60
test eax, eax
jne 0x1004a6d
mov word [ebp - 0x18], ax
mov word [ebp - 0x16], ax
mov word [ebp - 0x14], dx
mov word [ebp - 0x12], ax
jmp 0x1004b26
lea eax, [ebp - 0x48]
push eax
jmp 0x1004a86
test byte [ebx], 1
je 0x1009d2c
movzx eax, word [ebx + 0x64]
mov cx, word [ebp - 0x10]
cmp ax, cx
jl 0x100e850
mov cx, word [ebp - 0xc]
cmp ax, cx
jle 0x100e854
mov word [ebx + 0x64], cx
movzx eax, word [ebx + 0x66]
mov cx, word [ebp - 0xe]
cmp ax, cx
jl 0x100e86a
mov cx, word [ebp - 0xa]
cmp ax, cx
jle 0x100e86e
mov word [ebx + 0x66], cx
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
push esi
push ebx
mov dword [esi + 4], eax
call fcn.01001b5b
jmp 0x1004b37
call fcn.01026442
call fcn.01026533
jmp 0x1004b44